mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Streamline variable assignment
This commit is contained in:
parent
88c9d74206
commit
0c45961382
5 changed files with 7 additions and 31 deletions
|
@ -115,11 +115,7 @@ class autoProcessMovie(object):
|
|||
web_root = core.CFG[section][inputCategory].get("web_root", "")
|
||||
remote_path = int(core.CFG[section][inputCategory].get("remote_path", 0))
|
||||
extract = int(section[inputCategory].get("extract", 0))
|
||||
|
||||
if ssl:
|
||||
protocol = "https://"
|
||||
else:
|
||||
protocol = "http://"
|
||||
protocol = "https://" if ssl else "http://"
|
||||
|
||||
baseURL = "%s%s:%s%s/api/%s" % (protocol, host, port, web_root, apikey)
|
||||
if not server_responding(baseURL):
|
||||
|
@ -213,9 +209,7 @@ class autoProcessMovie(object):
|
|||
params['downloader'] = downloader or clientAgent
|
||||
params['download_id'] = download_id
|
||||
|
||||
params['media_folder'] = dirName
|
||||
if remote_path:
|
||||
params['media_folder'] = remoteDir(dirName)
|
||||
params['media_folder'] = remoteDir(dirName) if remote_path else dirName
|
||||
|
||||
if method == "manage":
|
||||
command = "/manage.update"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue