Browse Source

Merge pull request #6491 from YourHuckleberry/develop

Fixes #6489 - Was comparing string against dictionary key without che…
pull/6525/merge
Ruud Burger 9 years ago
committed by GitHub
parent
commit
9e4fa67354
  1. 1
      couchpotato/core/media/_base/providers/torrent/hd4free.py

1
couchpotato/core/media/_base/providers/torrent/hd4free.py

@ -25,6 +25,7 @@ class Base(TorrentProvider):
def _search(self, movie, quality, results):
data = self.getJsonData(self.urls['search'] % (self.conf('apikey'), self.conf('username'), getIdentifier(movie), self.conf('internal_only')))
if 'error' in data:
if data:
if self.login_fail_msg in data['error']: # Check for login failure
self.disableAccount()

Loading…
Cancel
Save