mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
parent
c07745d79c
commit
8570a6bfc8
7 changed files with 28 additions and 24 deletions
|
@ -18,7 +18,7 @@ class autoProcessMusic:
|
|||
logger.debug("Opening URL: %s with PARAMS: %s" % (url, params))
|
||||
|
||||
try:
|
||||
r = requests.get(url, params=params, verify=False)
|
||||
r = requests.get(url, params=params, verify=False, timeout=(30, 120))
|
||||
except Exception, e:
|
||||
logger.error("Unable to open URL")
|
||||
return None
|
||||
|
@ -106,7 +106,7 @@ class autoProcessMusic:
|
|||
logger.debug("Opening URL: %s with PARAMS: %s" % (url, params), section)
|
||||
|
||||
try:
|
||||
r = requests.get(url, params=params, verify=False)
|
||||
r = requests.get(url, params=params, verify=False, timeout=(30, 300))
|
||||
except requests.ConnectionError:
|
||||
logger.error("Unable to open URL %s" % (url) ,section)
|
||||
return [1, "%s: Failed to post-process - Unable to connect to %s" % (section, section) ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue