Skip to content

Commit

Permalink
Merge pull request #66 from p0psicles/fix-reauth
Browse files Browse the repository at this point in the history
Added check on expired cookies for tvchaosuk.py
  • Loading branch information
p0psicles committed Mar 2, 2016
2 parents 0b113d7 + e7a964d commit 591c5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/providers/tvchaosuk.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _check_auth(self):
raise AuthException('Your authentication credentials for ' + self.name + ' are missing, check your config.')

def login(self):
if len(self.session.cookies) >= 4:
if (len(self.session.cookies) >= 4 and all([not cookie.is_expired() for cookie in self.session.cookies])):
return True

login_params = {
Expand Down

0 comments on commit 591c5b3

Please sign in to comment.