From 8f6d83e5bcc6eec28b2f8af0cb03d9dde047221b Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 29 Jan 2012 21:06:12 +0100 Subject: [PATCH] Use proper url to test available provider --- couchpotato/core/providers/base.py | 1 - couchpotato/core/providers/nzb/x264/main.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/couchpotato/core/providers/base.py b/couchpotato/core/providers/base.py index 1a2e9425..8f79e22e 100644 --- a/couchpotato/core/providers/base.py +++ b/couchpotato/core/providers/base.py @@ -1,7 +1,6 @@ from couchpotato.core.event import addEvent from couchpotato.core.logger import CPLog from couchpotato.core.plugins.base import Plugin -from couchpotato.environment import Env from urlparse import urlparse import re import time diff --git a/couchpotato/core/providers/nzb/x264/main.py b/couchpotato/core/providers/nzb/x264/main.py index 645293b3..a3daa375 100644 --- a/couchpotato/core/providers/nzb/x264/main.py +++ b/couchpotato/core/providers/nzb/x264/main.py @@ -20,7 +20,7 @@ class X264(NZBProvider): def search(self, movie, quality): results = [] - if self.isDisabled() or not self.isAvailable(self.urls['search']) or not quality.get('hd', False): + if self.isDisabled() or not self.isAvailable(self.urls['search'].split('requests')[0]) or not quality.get('hd', False): return results q = '%s %s %s' % (movie['library']['titles'][0]['title'], movie['library']['year'], quality.get('identifier'))