Merge pull request #730 from JackDandy/feature/ChangeProvKat

Change ensure KAT URL is available.
This commit is contained in:
JackDandy 2016-07-07 03:22:05 +01:00 committed by GitHub
commit bdad07d5a1
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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())