1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-31 20:26:16 +00:00

Add debug logging when formatting audio channels

This commit is contained in:
Mark McDowall 2017-12-02 16:16:53 -08:00
parent 0a690eb4d8
commit 9d7547e941
No known key found for this signature in database
GPG key ID: D4CEFA9A718052E0

View file

@ -26,15 +26,21 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
{
if (mediaInfo.SchemaRevision >= 3)
{
Logger.Debug("Formatiting audio channels using 'AudioChannels', with a value of: '{0}'", audioChannels);
return audioChannels;
}
return 0;
}
Logger.Debug("Formatiting audio channels using 'AudioChannelPositionsText', with a value of: '{0}'", audioChannelPositionsText);
return mediaInfo.AudioChannelPositionsText.ContainsIgnoreCase("LFE") ? audioChannels - 1 + 0.1m : audioChannels;
}
Logger.Debug("Formatiting audio channels using 'AudioChannelPositions', with a value of: '{0}'", audioChannelPositions);
if (audioChannelPositions.Contains("+"))
{
return audioChannelPositions.Split('+')