From 2aa7706233a68b7ebad7234c588ee3cb5e0f7529 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 4 May 2014 22:16:36 -0700 Subject: [PATCH] Fix for issue #375 TorrentDay and IPTorrents --- sickbeard/providers/iptorrents.py | 2 -- sickbeard/providers/torrentday.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/sickbeard/providers/iptorrents.py b/sickbeard/providers/iptorrents.py index 1a508dd4..c89e09c4 100644 --- a/sickbeard/providers/iptorrents.py +++ b/sickbeard/providers/iptorrents.py @@ -76,8 +76,6 @@ class IPTorrentsProvider(generic.TorrentProvider): 'login': 'submit', } - self.session = requests.Session() - try: response = self.session.post(self.urls['login'], data=login_params, timeout=30) except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e: diff --git a/sickbeard/providers/torrentday.py b/sickbeard/providers/torrentday.py index 76fa17cc..13c5ac8c 100644 --- a/sickbeard/providers/torrentday.py +++ b/sickbeard/providers/torrentday.py @@ -162,9 +162,6 @@ class TorrentDayProvider(generic.TorrentProvider): freeleech = '&free=on' if sickbeard.TORRENTDAY_FREELEECH else '' - if not self.session: - self._doLogin() - if not self._doLogin(): return []