1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

HDBits fixed! DOn't question just say ... thankyou ;)

This commit is contained in:
echel0n 2014-05-19 14:25:33 -07:00
parent f0bd8e5e4a
commit 3918917f7a

View File

@ -104,7 +104,13 @@ class HDBitsProvider(generic.TorrentProvider):
logger.log(u"Search url: " + self.search_url + " search_params: " + search_params, logger.DEBUG)
parsedJSON = self.getURL(self.search_url, post_data=search_params, json=True)
data = self.getURL(self.search_url, post_data=search_params)
if not data:
logger.log(u"No data returned from " + self.search_url, logger.ERROR)
return []
parsedJSON = helpers.parse_json(data)
if parsedJSON is None:
logger.log(u"Error trying to load " + self.name + " JSON data", logger.ERROR)