1
0
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:
Qstick 2022-01-25 19:01:01 -06:00
parent 093e076db0
commit b8c92d23f4
2 changed files with 6 additions and 3 deletions

View File

@ -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")]

View File

@ -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 "";
}