diff --git a/nzbtomedia/autoProcess/autoProcessTV.py b/nzbtomedia/autoProcess/autoProcessTV.py index 7a42ad5c..b824101c 100644 --- a/nzbtomedia/autoProcess/autoProcessTV.py +++ b/nzbtomedia/autoProcess/autoProcessTV.py @@ -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)