From cbb18eaee811b466d01796ede89aded116853154 Mon Sep 17 00:00:00 2001 From: azcom <arran@not-bad.co.uk> Date: Tue, 17 Apr 2012 02:46:09 +0200 Subject: [PATCH] Resolved issue for newzbin provider where no results could be found for searches with "720p WEB-DL" quality selections --- sickbeard/providers/newzbin.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sickbeard/providers/newzbin.py b/sickbeard/providers/newzbin.py index c0b2360a6..1157a328b 100644 --- a/sickbeard/providers/newzbin.py +++ b/sickbeard/providers/newzbin.py @@ -158,14 +158,17 @@ class NewzbinProvider(generic.NZBProvider): def _is_WEBDL(self, attrs): - # Video Fmt: H.264, 720p - video_fmt = 'Video Fmt' in attrs and ('H.264' in attrs['Video Fmt']) \ + # Video Fmt: x264, H.264, 720p + video_fmt = 'Video Fmt' in attrs and ('x264' in attrs['Video Fmt'] or 'H.264' in attrs['Video Fmt']) \ and ('720p' in attrs['Video Fmt']) + # Source: Web-DL + source = 'Source' in attrs and 'Web-dl' in attrs['Source'] + # Subtitles: (None) subs = 'Subtitles' not in attrs - return video_fmt and subs + return video_fmt and source and subs def _is_720pBluRay(self, attrs): -- GitLab