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. 9
      couchpotato/core/media/_base/providers/torrent/hd4free.py

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

@ -25,10 +25,11 @@ 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 data:
if self.login_fail_msg in data['error']: # Check for login failure
self.disableAccount()
return
if 'error' in data:
if data:
if self.login_fail_msg in data['error']: # Check for login failure
self.disableAccount()
return
try:
#for result in data[]:

Loading…
Cancel
Save