1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Fixes for BTN provider

This commit is contained in:
echel0n 2014-04-22 14:58:48 -07:00
parent ad14de3d9e
commit 984e5e101d

View File

@ -202,7 +202,6 @@ class BTNProvider(generic.TorrentProvider):
current_params = {} current_params = {}
if show.indexer == 1: if show.indexer == 1:
current_params['tvdb'] = show.indexerid current_params['tvdb'] = show.indexerid
elif show.indexer == 2: elif show.indexer == 2:
@ -242,6 +241,12 @@ class BTNProvider(generic.TorrentProvider):
return [{}] return [{}]
search_params = {'category': 'Episode'} search_params = {'category': 'Episode'}
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) search_params['series'] = sanitizeSceneName(ep_obj.show.name)
if ep_obj.show.air_by_date: if ep_obj.show.air_by_date:
@ -341,7 +346,6 @@ class BTNCache(tvcache.TVCache):
else: else:
raise AuthException( raise AuthException(
"Your authentication info for " + self.provider.name + " is incorrect, check your config") "Your authentication info for " + self.provider.name + " is incorrect, check your config")
else: else:
return [] return []