mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Fix for issue #375 TorrentDay and IPTorrents
This commit is contained in:
parent
ddea462f0b
commit
2aa7706233
2 changed files with 0 additions and 5 deletions
|
@ -76,8 +76,6 @@ class IPTorrentsProvider(generic.TorrentProvider):
|
||||||
'login': 'submit',
|
'login': 'submit',
|
||||||
}
|
}
|
||||||
|
|
||||||
self.session = requests.Session()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = self.session.post(self.urls['login'], data=login_params, timeout=30)
|
response = self.session.post(self.urls['login'], data=login_params, timeout=30)
|
||||||
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e:
|
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e:
|
||||||
|
|
|
@ -162,9 +162,6 @@ class TorrentDayProvider(generic.TorrentProvider):
|
||||||
|
|
||||||
freeleech = '&free=on' if sickbeard.TORRENTDAY_FREELEECH else ''
|
freeleech = '&free=on' if sickbeard.TORRENTDAY_FREELEECH else ''
|
||||||
|
|
||||||
if not self.session:
|
|
||||||
self._doLogin()
|
|
||||||
|
|
||||||
if not self._doLogin():
|
if not self._doLogin():
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue