Browse Source

Add detection of '1080p Remux' releases as fullhdbluray.

pull/913/head
Prinz23 8 years ago
committed by JackDandy
parent
commit
4a466666ea
  1. 1
      CHANGES.md
  2. 3
      sickbeard/common.py
  3. 3
      tests/common_tests.py

1
CHANGES.md

@ -43,6 +43,7 @@
* Update jQuery 1.8.3 to 2.2.4
* Add one time run to start up that deletes troublemaking compiled files
* Fix reload of homepage after restart in some browsers
* Add detection of '1080p Remux' releases as fullhdbluray
* Change add IPv4 config option when enabling IPv6.

3
sickbeard/common.py

@ -237,7 +237,8 @@ class Quality:
return Quality.FULLHDWEBDL
elif checkName(['720p', 'blu.?ray|hddvd|b[r|d]rip', 'x264|h.?264'], all):
return Quality.HDBLURAY
elif checkName(['1080p', 'blu.?ray|hddvd|b[r|d]rip', 'x264|h.?264'], all):
elif checkName(['1080p', 'blu.?ray|hddvd|b[r|d]rip', 'x264|h.?264'], all) or \
(checkName(['1080[pi]', 'remux'], all) and not checkName(['hdtv'], all)):
return Quality.FULLHDBLURAY
elif checkName(['2160p', 'web.?(dl|rip|.[hx]26[45])'], all):
return Quality.UHD4KWEB

3
tests/common_tests.py

@ -135,7 +135,8 @@ class QualityTests(unittest.TestCase):
self.check_quality_names(common.Quality.FULLHDBLURAY, [
'Test.Show.S01E02.1080p.BluRay.x264-GROUP',
'Test.Show.S01E02.1080p.HDDVD.x264-GROUP',
'Test.Show.S01E02.1080p.Blu-ray.x264-GROUP'])
'Test.Show.S01E02.1080p.Blu-ray.x264-GROUP',
'Test Show S02 1080p Remux AVC FLAC 5.1'])
def test_UHD4KWEB(self):
self.check_quality_names(common.Quality.UHD4KWEB, [

Loading…
Cancel
Save