mirror of
https://github.com/Radarr/Radarr
synced 2026-04-19 11:21:46 +02:00
Use movieFile instead of episodeFile. (#560)
This commit is contained in:
parent
5f6f2f2859
commit
a07138680b
1 changed files with 5 additions and 5 deletions
|
|
@ -747,25 +747,25 @@ private void AddMediaInfoTokens(Dictionary<string, Func<TokenMatch, string>> tok
|
|||
break;
|
||||
|
||||
case "DTS":
|
||||
if (episodeFile.MediaInfo.AudioProfile == "ES Discrete / Core" || episodeFile.MediaInfo.AudioProfile == "ES Matrix / Core")
|
||||
if (movieFile.MediaInfo.AudioProfile == "ES Discrete / Core" || movieFile.MediaInfo.AudioProfile == "ES Matrix / Core")
|
||||
{
|
||||
audioCodec = "DTS-ES";
|
||||
}
|
||||
else if (episodeFile.MediaInfo.AudioProfile == "MA / Core" || episodeFile.MediaInfo.AudioProfile == "MA / ES Matrix / Core")
|
||||
else if (movieFile.MediaInfo.AudioProfile == "MA / Core" || movieFile.MediaInfo.AudioProfile == "MA / ES Matrix / Core")
|
||||
{
|
||||
audioCodec = "DTS-HD MA";
|
||||
}
|
||||
else if (episodeFile.MediaInfo.AudioProfile == "HRA / Core")
|
||||
else if (movieFile.MediaInfo.AudioProfile == "HRA / Core")
|
||||
{
|
||||
audioCodec = "DTS-HD HRA";
|
||||
}
|
||||
else if (episodeFile.MediaInfo.AudioProfile == "X / MA / Core")
|
||||
else if (movieFile.MediaInfo.AudioProfile == "X / MA / Core")
|
||||
{
|
||||
audioCodec = "DTS-X";
|
||||
}
|
||||
else
|
||||
{
|
||||
audioCodec = episodeFile.MediaInfo.AudioFormat;
|
||||
audioCodec = movieFile.MediaInfo.AudioFormat;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue