mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 18:03:37 +00:00
Merge pull request #418 from WebSpider/dev-torrentday_fix
Torrentday fix
This commit is contained in:
commit
8402a98c43
1 changed files with 11 additions and 6 deletions
|
@ -103,14 +103,19 @@ class TorrentDayProvider(generic.TorrentProvider):
|
||||||
logger.log(u'Invalid username or password for ' + self.name + ', Check your settings!', logger.ERROR)
|
logger.log(u'Invalid username or password for ' + self.name + ', Check your settings!', logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
sickbeard.TORRENTDAY_UID = requests.utils.dict_from_cookiejar(self.session.cookies)['uid']
|
if requests.utils.dict_from_cookiejar(self.session.cookies)['uid'] and requests.utils.dict_from_cookiejar(self.session.cookies)['pass']:
|
||||||
sickbeard.TORRENTDAY_HASH = requests.utils.dict_from_cookiejar(self.session.cookies)['pass']
|
sickbeard.TORRENTDAY_UID = requests.utils.dict_from_cookiejar(self.session.cookies)['uid']
|
||||||
|
sickbeard.TORRENTDAY_HASH = requests.utils.dict_from_cookiejar(self.session.cookies)['pass']
|
||||||
|
|
||||||
self.cookies = {'uid': sickbeard.TORRENTDAY_UID,
|
self.cookies = {'uid': sickbeard.TORRENTDAY_UID,
|
||||||
'pass': sickbeard.TORRENTDAY_HASH
|
'pass': sickbeard.TORRENTDAY_HASH
|
||||||
}
|
}
|
||||||
|
return True
|
||||||
|
|
||||||
|
else:
|
||||||
|
logger.log(u'Unable to obtain cookie for TorrentDay', logger.ERROR)
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
||||||
def _get_season_search_strings(self, ep_obj):
|
def _get_season_search_strings(self, ep_obj):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue