mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: SampleRate Format doesn't include decimal
This commit is contained in:
parent
b0faaef777
commit
d71f7e5d35
2 changed files with 2 additions and 2 deletions
|
@ -375,7 +375,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|||
_namingConfig.StandardTrackFormat = "{MediaInfo AudioSampleRate}";
|
||||
|
||||
Subject.BuildTrackFileName(new List<Track> { _track1 }, _artist, _album, _trackFile)
|
||||
.Should().Be("44kHz");
|
||||
.Should().Be("44.1kHz");
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace NzbDrone.Core.MediaFiles
|
|||
|
||||
public static string FormatAudioSampleRate(MediaInfoModel mediaInfo)
|
||||
{
|
||||
return $"{mediaInfo.AudioSampleRate / 1000:0.#}kHz";
|
||||
return $"{(double)mediaInfo.AudioSampleRate / 1000:0.#}kHz";
|
||||
}
|
||||
|
||||
public static decimal FormatAudioChannels(MediaInfoModel mediaInfo)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue