Use proper url to test available provider

This commit is contained in:
Ruud
2012-01-29 21:06:12 +01:00
parent f35a68edd7
commit 8f6d83e5bc
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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
+1 -1
View File
@@ -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'))