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
1 changed files with 6 additions and 0 deletions

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('+')