mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
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.
This commit is contained in:
parent
e185ba0191
commit
5f6f2f2859
1 changed files with 24 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue