Fix for issue #375 TorrentDay and IPTorrents

This commit is contained in:
echel0n 2014-05-04 22:16:36 -07:00
parent ddea462f0b
commit 2aa7706233
2 changed files with 0 additions and 5 deletions

View file

@ -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:

View file

@ -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 []