mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
New: Add EAC3 Atmos to Mediainfo Formatting (#3900)
* Added a EAC3 Atmos option Added a second if statement under "if (audioFormat.ContainsIgnoreCase("E-AC-3"))" to look for "JOC" in splitAdditionalFeatures to be able to identify EAC3 tracks that contain atmos. I used the audioFormat "MLP FBA" with "TrueHD Atmos" as a reference.
This commit is contained in:
parent
803b44280f
commit
a9f95109f6
@ -43,8 +43,8 @@ public void should_format_audio_format_legacy(string audioFormat, string expecte
|
|||||||
[TestCase("DTS, A_DTS, , , ES XXCH", "DTS", "DTS-ES")]
|
[TestCase("DTS, A_DTS, , , ES XXCH", "DTS", "DTS-ES")]
|
||||||
[TestCase("DTS, A_DTS, , , XBR", "DTSHD-HRA", "DTS-HD HRA")]
|
[TestCase("DTS, A_DTS, , , XBR", "DTSHD-HRA", "DTS-HD HRA")]
|
||||||
[TestCase("DTS, A_DTS, , , DTS", "DTS", "DTS")]
|
[TestCase("DTS, A_DTS, , , DTS", "DTS", "DTS")]
|
||||||
[TestCase("E-AC-3, A_EAC3, , , JOC", "EAC3", "EAC3")]
|
[TestCase("E-AC-3, A_EAC3, , , JOC", "EAC3.Atmos", "EAC3 Atmos")]
|
||||||
[TestCase("E-AC-3, A_EAC3, , , ", "DD5.1", "EAC3")]
|
[TestCase("E-AC-3, A_EAC3, , , ", "DDP5.1", "EAC3")]
|
||||||
[TestCase("AC-3, A_AC3, , , ", "DD5.1", "AC3")]
|
[TestCase("AC-3, A_AC3, , , ", "DD5.1", "AC3")]
|
||||||
[TestCase("A_QUICKTIME, A_QUICKTIME, , , ", "", "")]
|
[TestCase("A_QUICKTIME, A_QUICKTIME, , , ", "", "")]
|
||||||
[TestCase("ADPCM, 2, , , ", "Custom?", "PCM")]
|
[TestCase("ADPCM, 2, , , ", "Custom?", "PCM")]
|
||||||
|
@ -100,6 +100,11 @@ public static string FormatAudioCodec(MediaInfoModel mediaInfo, string sceneName
|
|||||||
|
|
||||||
if (audioFormat.ContainsIgnoreCase("E-AC-3"))
|
if (audioFormat.ContainsIgnoreCase("E-AC-3"))
|
||||||
{
|
{
|
||||||
|
if (splitAdditionalFeatures.ContainsIgnoreCase("JOC"))
|
||||||
|
{
|
||||||
|
return "EAC3 Atmos";
|
||||||
|
}
|
||||||
|
|
||||||
return "EAC3";
|
return "EAC3";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user