mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Streamline variable assignment
This commit is contained in:
parent
88c9d74206
commit
0c45961382
5 changed files with 7 additions and 31 deletions
|
@ -23,11 +23,7 @@ class autoProcessComics(object):
|
|||
ssl = int(core.CFG[section][inputCategory].get("ssl", 0))
|
||||
web_root = core.CFG[section][inputCategory].get("web_root", "")
|
||||
remote_path = int(core.CFG[section][inputCategory].get("remote_path"), 0)
|
||||
|
||||
if ssl:
|
||||
protocol = "https://"
|
||||
else:
|
||||
protocol = "http://"
|
||||
protocol = "https://" if ssl else "http://"
|
||||
|
||||
url = "%s%s:%s%s/post_process" % (protocol, host, port, web_root)
|
||||
if not server_responding(url):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue