diff --git a/couchpotato/core/providers/nzb/mysterbin/main.py b/couchpotato/core/providers/nzb/mysterbin/main.py index 7e19d1b..baf6055 100644 --- a/couchpotato/core/providers/nzb/mysterbin/main.py +++ b/couchpotato/core/providers/nzb/mysterbin/main.py @@ -22,7 +22,7 @@ class Mysterbin(NZBProvider): def search(self, movie, quality): results = [] - if self.isDisabled() or not self.isAvailable(self.urls['search']): + if self.isDisabled(): return results q = '"%s" %s %s' % (getTitle(movie['library']), movie['library']['year'], quality.get('identifier')) @@ -39,7 +39,7 @@ class Mysterbin(NZBProvider): 'nopasswd': 'on', } - cache_key = 'mysterbin.%s.%s' % (movie['library']['identifier'], quality.get('identifier')) + cache_key = 'mysterbin.%s.%s.%s' % (movie['library']['identifier'], quality.get('identifier'), q) data = self.getCache(cache_key, self.urls['search'] % tryUrlencode(params)) if data: diff --git a/couchpotato/core/providers/nzb/newzbin/main.py b/couchpotato/core/providers/nzb/newzbin/main.py index 02efffa..c6de2a2 100644 --- a/couchpotato/core/providers/nzb/newzbin/main.py +++ b/couchpotato/core/providers/nzb/newzbin/main.py @@ -39,7 +39,7 @@ class Newzbin(NZBProvider, RSS): def search(self, movie, quality): results = [] - if self.isDisabled() or not self.isAvailable(self.urls['search']): + if self.isDisabled(): return results format_id = self.getFormatId(type) diff --git a/couchpotato/core/providers/nzb/newznab/main.py b/couchpotato/core/providers/nzb/newznab/main.py index 691f5e6..448ab35 100644 --- a/couchpotato/core/providers/nzb/newznab/main.py +++ b/couchpotato/core/providers/nzb/newznab/main.py @@ -51,7 +51,7 @@ class Newznab(NZBProvider, RSS): def singleFeed(self, host): results = [] - if self.isDisabled(host) or not self.isAvailable(self.getUrl(host['host'], self.urls['search'])): + if self.isDisabled(host): return results arguments = tryUrlencode({ @@ -83,7 +83,7 @@ class Newznab(NZBProvider, RSS): def singleSearch(self, host, movie, quality): results = [] - if self.isDisabled(host) or not self.isAvailable(self.getUrl(host['host'], self.urls['search'])): + if self.isDisabled(host): return results cat_id = self.getCatId(quality['identifier']) diff --git a/couchpotato/core/providers/nzb/nzbclub/main.py b/couchpotato/core/providers/nzb/nzbclub/main.py index 2005fd2..3e07356 100644 --- a/couchpotato/core/providers/nzb/nzbclub/main.py +++ b/couchpotato/core/providers/nzb/nzbclub/main.py @@ -24,7 +24,7 @@ class NZBClub(NZBProvider, RSS): def search(self, movie, quality): results = [] - if self.isDisabled() or not self.isAvailable(self.urls['search']): + if self.isDisabled(): return results q = '"%s" %s %s' % (getTitle(movie['library']), movie['library']['year'], quality.get('identifier')) @@ -40,7 +40,7 @@ class NZBClub(NZBProvider, RSS): 'ns': 1, } - cache_key = 'nzbclub.%s.%s' % (movie['library']['identifier'], quality.get('identifier')) + cache_key = 'nzbclub.%s.%s.%s' % (movie['library']['identifier'], quality.get('identifier'), q) data = self.getCache(cache_key, self.urls['search'] % tryUrlencode(params)) if data: try: diff --git a/couchpotato/core/providers/nzb/nzbindex/main.py b/couchpotato/core/providers/nzb/nzbindex/main.py index 96e875a..f0e7ea8 100644 --- a/couchpotato/core/providers/nzb/nzbindex/main.py +++ b/couchpotato/core/providers/nzb/nzbindex/main.py @@ -26,7 +26,7 @@ class NzbIndex(NZBProvider, RSS): def search(self, movie, quality): results = [] - if self.isDisabled() or not self.isAvailable(self.urls['api']): + if self.isDisabled(): return results q = '%s %s %s' % (getTitle(movie['library']), movie['library']['year'], quality.get('identifier')) diff --git a/couchpotato/core/providers/nzb/nzbmatrix/main.py b/couchpotato/core/providers/nzb/nzbmatrix/main.py index c1e579c..b512790 100644 --- a/couchpotato/core/providers/nzb/nzbmatrix/main.py +++ b/couchpotato/core/providers/nzb/nzbmatrix/main.py @@ -32,7 +32,7 @@ class NZBMatrix(NZBProvider, RSS): results = [] - if self.isDisabled() or not self.isAvailable(self.urls['search']): + if self.isDisabled(): return results cat_ids = ','.join(['%s' % x for x in self.getCatId(quality.get('identifier'))]) diff --git a/couchpotato/core/providers/torrent/kickasstorrents/main.py b/couchpotato/core/providers/torrent/kickasstorrents/main.py index 4fd7b76..1101d32 100644 --- a/couchpotato/core/providers/torrent/kickasstorrents/main.py +++ b/couchpotato/core/providers/torrent/kickasstorrents/main.py @@ -34,7 +34,7 @@ class KickAssTorrents(TorrentProvider): def search(self, movie, quality): results = [] - if self.isDisabled() or not self.isAvailable(self.urls['test']): + if self.isDisabled(): return results cache_key = 'kickasstorrents.%s.%s' % (movie['library']['identifier'], quality.get('identifier')) diff --git a/couchpotato/core/providers/torrent/thepiratebay/main.py b/couchpotato/core/providers/torrent/thepiratebay/main.py index d9b06bf..74055df 100644 --- a/couchpotato/core/providers/torrent/thepiratebay/main.py +++ b/couchpotato/core/providers/torrent/thepiratebay/main.py @@ -31,7 +31,7 @@ class ThePirateBay(TorrentProvider): def find(self, movie, quality, type): results = [] - if not self.enabled() or not self.isAvailable(self.apiUrl): + if not self.enabled(): return results url = self.apiUrl % (quote_plus(self.toSearchString(movie.name + ' ' + quality) + self.makeIgnoreString(type)), self.getCatId(type))