From f5347d172702078e63077385b1dbfe9f72a4b9d4 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Thu, 7 Jul 2016 03:17:01 +0100 Subject: [PATCH] Change ensure KAT URL is available. --- CHANGES.md | 1 + sickbeard/providers/kat.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 12faab46..f769720a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -107,6 +107,7 @@ [develop changelog] * Change send nzb data to NZBGet for Anizb instead of url +* Change ensure KAT URL is available ### 0.11.12 (2016-06-20 02:20:00 UTC) diff --git a/sickbeard/providers/kat.py b/sickbeard/providers/kat.py index f059a5dc..a602b101 100644 --- a/sickbeard/providers/kat.py +++ b/sickbeard/providers/kat.py @@ -134,6 +134,8 @@ class KATProvider(generic.TorrentProvider): def _search_provider(self, search_params, search_mode='eponly', epcount=0, **kwargs): results = [] + if None is self.url: + return results items = {'Cache': [], 'Season': [], 'Episode': [], 'Propers': []} rc = dict((k, re.compile('(?i)' + v)) for (k, v) in {'link': 'normal', 'get': '^magnet', 'verif': 'verif'}.items())