mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 11:38:30 -07:00
PEP8: Fix formatting
* Remove redundant backslash between brackets * Fix multiple statements on one line * Fix missing/excess whitespace * Fix comments not starting with a single `#` and a space * Convert tabs to spaces
This commit is contained in:
parent
0a1fe84306
commit
38ed3350ac
5 changed files with 97 additions and 95 deletions
|
@ -66,8 +66,10 @@ class autoProcessComics(object):
|
||||||
logger.error("Unable to open URL", section)
|
logger.error("Unable to open URL", section)
|
||||||
return [1, "%s: Failed to post-process - Unable to connect to %s" % (section, section)]
|
return [1, "%s: Failed to post-process - Unable to connect to %s" % (section, section)]
|
||||||
for line in r.iter_lines():
|
for line in r.iter_lines():
|
||||||
if line: logger.postprocess("%s" % (line), section)
|
if line:
|
||||||
if "Post Processing SUCCESSFUL" in line: success = True
|
logger.postprocess("%s" % (line), section)
|
||||||
|
if "Post Processing SUCCESSFUL" in line:
|
||||||
|
success = True
|
||||||
|
|
||||||
if not r.status_code in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
|
if not r.status_code in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
|
||||||
logger.error("Server returned status %s" % (str(r.status_code)), section)
|
logger.error("Server returned status %s" % (str(r.status_code)), section)
|
||||||
|
|
|
@ -56,7 +56,8 @@ class autoProcessMovie(object):
|
||||||
id = result[section]['_id']
|
id = result[section]['_id']
|
||||||
results[id] = result[section]
|
results[id] = result[section]
|
||||||
return results
|
return results
|
||||||
except:pass
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# Gather release info and proceed with trying to narrow results to one release choice
|
# Gather release info and proceed with trying to narrow results to one release choice
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@ class autoProcessMusic(object):
|
||||||
else:
|
else:
|
||||||
protocol = "http://"
|
protocol = "http://"
|
||||||
|
|
||||||
|
|
||||||
url = "%s%s:%s%s/api" % (protocol, host, port, web_root)
|
url = "%s%s:%s%s/api" % (protocol, host, port, web_root)
|
||||||
if not server_responding(url):
|
if not server_responding(url):
|
||||||
logger.error("Server did not respond. Exiting", section)
|
logger.error("Server did not respond. Exiting", section)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue