diff --git a/CHANGES.md b/CHANGES.md index f8926ef0..c84e8084 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.11.10 (2016-03-17 19:00:00 UTC) +### 0.11.11 (2016-04-05 19:20:00 UTC) + +* Add support for SD mkv container + + +### 0.11.10 (2016-03-17 19:00:00 UTC) * Fix dbs that should not have been imported to work diff --git a/sickbeard/common.py b/sickbeard/common.py index c3b93237..d4a5c9cc 100644 --- a/sickbeard/common.py +++ b/sickbeard/common.py @@ -271,7 +271,7 @@ class Quality: @staticmethod def assumeQuality(name): - if name.lower().endswith(('.avi', '.mp4')): + if name.lower().endswith(('.avi', '.mp4', '.mkv')): return Quality.SDTV elif name.lower().endswith('.ts'): return Quality.RAWHDTV diff --git a/tests/common_tests.py b/tests/common_tests.py index b03e845c..82c32407 100644 --- a/tests/common_tests.py +++ b/tests/common_tests.py @@ -12,6 +12,9 @@ class QualityTests(unittest.TestCase): # TODO: repack / proper ? air-by-date ? season rip? multi-ep? def test_SDTV(self): + self.assertEqual(common.Quality.compositeStatus(common.DOWNLOADED, common.Quality.SDTV), + common.Quality.statusFromName('Test.Show.S01E02-GROUP.mkv')) + self.assertEqual(common.Quality.SDTV, common.Quality.nameQuality("Test.Show.S01E02.PDTV.XViD-GROUP")) self.assertEqual(common.Quality.SDTV, common.Quality.nameQuality("Test.Show.S01E02.PDTV.x264-GROUP")) self.assertEqual(common.Quality.SDTV, common.Quality.nameQuality("Test.Show.S01E02.HDTV.XViD-GROUP"))