use baseURL for Radarr

url isnt redefined with Radarr and only requires base
This commit is contained in:
sugarfunk 2017-02-23 20:27:44 -05:00
commit 471acaa6ba

View file

@ -256,7 +256,7 @@ class autoProcessMovie(object):
if section == "CouchPotato": if section == "CouchPotato":
r = requests.get(url, params=params, verify=False, timeout=(30, 1800)) r = requests.get(url, params=params, verify=False, timeout=(30, 1800))
else: else:
r = requests.post(url, data=json.dumps(payload), headers=headers, stream=True, verify=False, timeout=(30, 1800)) r = requests.post(baseURL, data=json.dumps(payload), headers=headers, stream=True, verify=False, timeout=(30, 1800))
except requests.ConnectionError: except requests.ConnectionError:
logger.error("Unable to open URL", section) logger.error("Unable to open URL", section)
return [1, "{0}: Failed to post-process - Unable to connect to {1}".format(section, section)] return [1, "{0}: Failed to post-process - Unable to connect to {1}".format(section, section)]