diff --git a/couchpotato/core/providers/base.py b/couchpotato/core/providers/base.py index 64e7011f..826c7d96 100644 --- a/couchpotato/core/providers/base.py +++ b/couchpotato/core/providers/base.py @@ -65,9 +65,13 @@ class YarrProvider(Provider): def belongsTo(self, url, host = None): try: hostname = urlparse(url).hostname - download_url = host if host else self.urls['download'] - if hostname in download_url: + if host and hostname in host: return self + else: + for url_type in self.urls: + download_url = self.urls[url_type] + if hostname in download_url: + return self except: log.debug('Url % s doesn\'t belong to %s' % (url, self.getName())) diff --git a/couchpotato/core/providers/torrent/kickasstorrents/main.py b/couchpotato/core/providers/torrent/kickasstorrents/main.py index dd5e375a..6a039c71 100644 --- a/couchpotato/core/providers/torrent/kickasstorrents/main.py +++ b/couchpotato/core/providers/torrent/kickasstorrents/main.py @@ -17,6 +17,7 @@ class KickAssTorrents(TorrentProvider): 'test': 'http://www.kat.ph/', 'detail': 'http://www.kat.ph/%s-t%s.html', 'search': 'http://www.kat.ph/%s-i%s/', + 'download': 'http://torcache.net/', } cat_ids = [