Add expanded DTS audio codecs to FileNameBuilder and fix up Atmos TrueHD audioCodec string. (#559)

* Add DTS-ES, DTS-HD HRA, DTS-HD MA, DTS-X to audioCodec.

* Cleanup "Atmos / TrueHD" audioCodec string.
pull/560/head
Chris Allen 8 years ago committed by Leonardo Galli
parent e185ba0191
commit 5f6f2f2859

@ -731,6 +731,10 @@ namespace NzbDrone.Core.Organizer
audioCodec = "EAC3";
break;
case "Atmos / TrueHD":
audioCodec = "Atmos TrueHD";
break;
case "MPEG Audio":
if (movieFile.MediaInfo.AudioProfile == "Layer 3")
{
@ -743,7 +747,26 @@ namespace NzbDrone.Core.Organizer
break;
case "DTS":
audioCodec = movieFile.MediaInfo.AudioFormat;
if (episodeFile.MediaInfo.AudioProfile == "ES Discrete / Core" || episodeFile.MediaInfo.AudioProfile == "ES Matrix / Core")
{
audioCodec = "DTS-ES";
}
else if (episodeFile.MediaInfo.AudioProfile == "MA / Core" || episodeFile.MediaInfo.AudioProfile == "MA / ES Matrix / Core")
{
audioCodec = "DTS-HD MA";
}
else if (episodeFile.MediaInfo.AudioProfile == "HRA / Core")
{
audioCodec = "DTS-HD HRA";
}
else if (episodeFile.MediaInfo.AudioProfile == "X / MA / Core")
{
audioCodec = "DTS-X";
}
else
{
audioCodec = episodeFile.MediaInfo.AudioFormat;
}
break;
default:

Loading…
Cancel
Save