mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Merge branch 'hotfix/0.11.11'
This commit is contained in:
commit
e0573b8c70
3 changed files with 10 additions and 2 deletions
|
@ -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
|
* Fix dbs that should not have been imported to work
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ class Quality:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def assumeQuality(name):
|
def assumeQuality(name):
|
||||||
if name.lower().endswith(('.avi', '.mp4')):
|
if name.lower().endswith(('.avi', '.mp4', '.mkv')):
|
||||||
return Quality.SDTV
|
return Quality.SDTV
|
||||||
elif name.lower().endswith('.ts'):
|
elif name.lower().endswith('.ts'):
|
||||||
return Quality.RAWHDTV
|
return Quality.RAWHDTV
|
||||||
|
|
|
@ -12,6 +12,9 @@ class QualityTests(unittest.TestCase):
|
||||||
# TODO: repack / proper ? air-by-date ? season rip? multi-ep?
|
# TODO: repack / proper ? air-by-date ? season rip? multi-ep?
|
||||||
|
|
||||||
def test_SDTV(self):
|
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.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.PDTV.x264-GROUP"))
|
||||||
self.assertEqual(common.Quality.SDTV, common.Quality.nameQuality("Test.Show.S01E02.HDTV.XViD-GROUP"))
|
self.assertEqual(common.Quality.SDTV, common.Quality.nameQuality("Test.Show.S01E02.HDTV.XViD-GROUP"))
|
||||||
|
|
Loading…
Reference in a new issue