Fixed: Handle MS variant MPEG4 files in video formatter

pull/6871/head
Qstick 3 years ago
parent 7bbd2246c4
commit 45d8227654

@ -20,6 +20,9 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo.MediaInfoFormatterTests
[TestCase("wmv2, WMV2", "Droned.wmv", "WMV")] [TestCase("wmv2, WMV2", "Droned.wmv", "WMV")]
[TestCase("mpeg4, XVID", "", "XviD")] [TestCase("mpeg4, XVID", "", "XviD")]
[TestCase("mpeg4, DIV3", "spsm.dvdrip.divx.avi'.", "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")]
[TestCase("msmpeg4v3, DIV3", "Exit the Dragon, Enter the Tiger (1976) 360p MPEG Audio.avi", "DivX")]
[TestCase("vp6, 4", "Top Gear - S12E01 - Lorries - SD TV.flv", "VP6")] [TestCase("vp6, 4", "Top Gear - S12E01 - Lorries - SD TV.flv", "VP6")]
[TestCase("vp7, VP70", "Sweet Seymour.avi", "VP7")] [TestCase("vp7, VP70", "Sweet Seymour.avi", "VP7")]
[TestCase("vp8, V_VP8", "Dick.mkv", "VP8")] [TestCase("vp8, V_VP8", "Dick.mkv", "VP8")]

@ -208,7 +208,7 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
return "MPEG"; return "MPEG";
} }
if (videoFormat == "mpeg4") if (videoFormat == "mpeg4" || videoFormat.Contains("msmpeg4"))
{ {
if (videoCodecID == "XVID") if (videoCodecID == "XVID")
{ {

Loading…
Cancel
Save