mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-03 22:57:18 +02:00
Fixed: Ignore case for DIVX VideoCodecID
This commit is contained in:
parent
093e076db0
commit
b8c92d23f4
@ -19,6 +19,8 @@ public class FormatVideoCodecFixture : TestBase
|
||||
[TestCase("wmv1, WMV1", "Droned.wmv", "WMV")]
|
||||
[TestCase("wmv2, WMV2", "Droned.wmv", "WMV")]
|
||||
[TestCase("mpeg4, XVID", "", "XviD")]
|
||||
[TestCase("mpeg4, DIVX", "", "DivX")]
|
||||
[TestCase("mpeg4, divx", "", "DivX")]
|
||||
[TestCase("mpeg4, DIV3", "spsm.dvdrip.divx.avi'.", "DivX")]
|
||||
[TestCase("msmpeg4, DIV3", "Exit the Dragon, Enter the Tiger (1976) 360p MPEG Audio.avi", "DivX")]
|
||||
[TestCase("msmpeg4v2, DIV3", "Exit the Dragon, Enter the Tiger (1976) 360p MPEG Audio.avi", "DivX")]
|
||||
|
@ -217,8 +217,8 @@ public static string FormatVideoCodec(MediaInfoModel mediaInfo, string sceneName
|
||||
}
|
||||
|
||||
if (videoCodecID == "DIV3" ||
|
||||
videoCodecID == "DIVX" ||
|
||||
videoCodecID == "DX50")
|
||||
videoCodecID == "DX50" ||
|
||||
videoCodecID.ToUpperInvariant() == "DIVX")
|
||||
{
|
||||
return "DivX";
|
||||
}
|
||||
@ -256,7 +256,8 @@ public static string FormatVideoCodec(MediaInfoModel mediaInfo, string sceneName
|
||||
videoFormat == "rv10" ||
|
||||
videoFormat == "rv20" ||
|
||||
videoFormat == "rv30" ||
|
||||
videoFormat == "rv40")
|
||||
videoFormat == "rv40" ||
|
||||
videoFormat == "cinepak")
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user