Don't check for status when doing sabnzbd api call

This commit is contained in:
rembo10
2015-05-11 17:46:24 -07:00
parent 1a39066cfc
commit 93fca13510

View File

@@ -48,17 +48,14 @@ def sab_api_call(request_type=None, params={}, **kwargs):
params['output']='json'
logger.info("Trying to send nzb to SABnzbd")
logger.info("Attempting to connect to SABnzbd on url: %s" % url)
response = request.request_json(url, params=params, **kwargs)
if not response:
logger.error("Error connecting to SABnzbd on url: %s" % url)
return False
if response['status'] == False and response['error']:
logger.error("Error connecting to SABnzbd: %s" % response['error'])
return False
else:
logger.info("Successfully connected to SABnzbd")
logger.info("Successfully connected to SABnzbd on url: %s" % url)
return response
def sendNZB(nzb):