Fixed: Return empty intead of 0bits if AudioBits is 0

pull/780/head
Qstick 6 years ago
parent d71f7e5d35
commit 6057127ec0

@ -19,6 +19,11 @@ namespace NzbDrone.Core.MediaFiles
public static string FormatAudioBitsPerSample(MediaInfoModel mediaInfo) public static string FormatAudioBitsPerSample(MediaInfoModel mediaInfo)
{ {
if (mediaInfo.AudioBits == 0)
{
return string.Empty;
}
return mediaInfo.AudioBits + "bit"; return mediaInfo.AudioBits + "bit";
} }

Loading…
Cancel
Save