Merge pull request #913 from JackDandy/feature/AddBlurayRemuxQuality

Add detection of '1080p Remux' releases as fullhdbluray.
This commit is contained in:
JackDandy 2017-02-15 00:44:16 +00:00 committed by GitHub
commit 3417f454de
3 changed files with 5 additions and 2 deletions

View file

@ -43,6 +43,7 @@
* Update jQuery 1.8.3 to 2.2.4 * Update jQuery 1.8.3 to 2.2.4
* Add one time run to start up that deletes troublemaking compiled files * Add one time run to start up that deletes troublemaking compiled files
* Fix reload of homepage after restart in some browsers * 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. * Change add IPv4 config option when enabling IPv6.

View file

@ -237,7 +237,8 @@ class Quality:
return Quality.FULLHDWEBDL return Quality.FULLHDWEBDL
elif checkName(['720p', 'blu.?ray|hddvd|b[r|d]rip', 'x264|h.?264'], all): elif checkName(['720p', 'blu.?ray|hddvd|b[r|d]rip', 'x264|h.?264'], all):
return Quality.HDBLURAY 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 return Quality.FULLHDBLURAY
elif checkName(['2160p', 'web.?(dl|rip|.[hx]26[45])'], all): elif checkName(['2160p', 'web.?(dl|rip|.[hx]26[45])'], all):
return Quality.UHD4KWEB return Quality.UHD4KWEB

View file

@ -135,7 +135,8 @@ class QualityTests(unittest.TestCase):
self.check_quality_names(common.Quality.FULLHDBLURAY, [ self.check_quality_names(common.Quality.FULLHDBLURAY, [
'Test.Show.S01E02.1080p.BluRay.x264-GROUP', 'Test.Show.S01E02.1080p.BluRay.x264-GROUP',
'Test.Show.S01E02.1080p.HDDVD.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): def test_UHD4KWEB(self):
self.check_quality_names(common.Quality.UHD4KWEB, [ self.check_quality_names(common.Quality.UHD4KWEB, [