Private GIT

Skip to content
Snippets Groups Projects
Commit 4150653f authored by Fernando's avatar Fernando
Browse files

Fix SickRage/sickrage-issues/issues/232

parent 77c9f8bc
Branches fix_providers8
No related tags found
No related merge requests found
......@@ -75,12 +75,9 @@ class HD4FreeProvider(TorrentProvider): # pylint: disable=too-many-instance-att
logger.log(u"No data returned from provider", logger.DEBUG)
continue
try:
if jdata['0']['total_results'] == 0:
if not '0' in jdata or jdata['0']['total_results'] == 0:
logger.log(u"Provider has no results for this search", logger.DEBUG)
continue
except (ValueError, KeyError):
pass
for i in jdata:
seeders = jdata[i]["seeders"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment