mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Added response checking to confirm a valid 200 http response code is returned
This commit is contained in:
parent
94ca5f245a
commit
c0f61ecb2d
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@ class autoProcessTV:
|
|||
logger.error("Unable to open URL: %s" % (url), section)
|
||||
return 1 # failure
|
||||
|
||||
if not r.ok:
|
||||
logger.error('FAILED: Something went wrong!, check your logs ...', section)
|
||||
return 1
|
||||
|
||||
for line in r.iter_lines():
|
||||
if line: logger.postprocess("%s" % (line), section)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue