mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Add support for SD mkv container.
This commit is contained in:
parent
5507dd21c7
commit
60a97ca397
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue