mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixes for BTN provider
This commit is contained in:
parent
ad14de3d9e
commit
984e5e101d
1 changed files with 7 additions and 3 deletions
|
@ -202,7 +202,6 @@ class BTNProvider(generic.TorrentProvider):
|
|||
|
||||
current_params = {}
|
||||
|
||||
|
||||
if show.indexer == 1:
|
||||
current_params['tvdb'] = show.indexerid
|
||||
elif show.indexer == 2:
|
||||
|
@ -242,7 +241,13 @@ class BTNProvider(generic.TorrentProvider):
|
|||
return [{}]
|
||||
|
||||
search_params = {'category': 'Episode'}
|
||||
search_params['series'] = sanitizeSceneName(ep_obj.show.name)
|
||||
|
||||
if ep_obj.show.indexer == 1:
|
||||
search_params['tvdb'] = ep_obj.show.indexerid
|
||||
elif ep_obj.show.indexer == 2:
|
||||
search_params['tvrage'] = ep_obj.show.indexerid
|
||||
else:
|
||||
search_params['series'] = sanitizeSceneName(ep_obj.show.name)
|
||||
|
||||
if ep_obj.show.air_by_date:
|
||||
date_str = str(ep_obj.airdate)
|
||||
|
@ -341,7 +346,6 @@ class BTNCache(tvcache.TVCache):
|
|||
else:
|
||||
raise AuthException(
|
||||
"Your authentication info for " + self.provider.name + " is incorrect, check your config")
|
||||
|
||||
else:
|
||||
return []
|
||||
|
||||
|
|
Loading…
Reference in a new issue