mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Fix for torrentday uid issues.
This commit is contained in:
parent
d6431570f1
commit
ddd9376faf
1 changed files with 7 additions and 7 deletions
|
@ -54,8 +54,8 @@ class TorrentDayProvider(generic.TorrentProvider):
|
||||||
self.supportsBacklog = True
|
self.supportsBacklog = True
|
||||||
|
|
||||||
self.enabled = False
|
self.enabled = False
|
||||||
self.uid = None
|
self._uid = None
|
||||||
self.hash = None
|
self._hash = None
|
||||||
self.username = None
|
self.username = None
|
||||||
self.password = None
|
self.password = None
|
||||||
self.ratio = None
|
self.ratio = None
|
||||||
|
@ -91,7 +91,7 @@ class TorrentDayProvider(generic.TorrentProvider):
|
||||||
if any(requests.utils.dict_from_cookiejar(self.session.cookies).values()):
|
if any(requests.utils.dict_from_cookiejar(self.session.cookies).values()):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if self.uid and self.hash:
|
if self._uid and self._hash:
|
||||||
|
|
||||||
requests.utils.add_dict_to_cookiejar(self.session.cookies, self.cookies)
|
requests.utils.add_dict_to_cookiejar(self.session.cookies, self.cookies)
|
||||||
|
|
||||||
|
@ -118,11 +118,11 @@ class TorrentDayProvider(generic.TorrentProvider):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if requests.utils.dict_from_cookiejar(self.session.cookies)['uid'] and requests.utils.dict_from_cookiejar(self.session.cookies)['pass']:
|
if requests.utils.dict_from_cookiejar(self.session.cookies)['uid'] and requests.utils.dict_from_cookiejar(self.session.cookies)['pass']:
|
||||||
self.uid = requests.utils.dict_from_cookiejar(self.session.cookies)['uid']
|
self._uid = requests.utils.dict_from_cookiejar(self.session.cookies)['uid']
|
||||||
self.hash = requests.utils.dict_from_cookiejar(self.session.cookies)['pass']
|
self._hash = requests.utils.dict_from_cookiejar(self.session.cookies)['pass']
|
||||||
|
|
||||||
self.cookies = {'uid': self.uid,
|
self.cookies = {'uid': self._uid,
|
||||||
'pass': self.hash
|
'pass': self._hash
|
||||||
}
|
}
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue