mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Rewrite dictionary creation as a dictionary literal
This commit is contained in:
parent
4a4087180b
commit
8235134fad
3 changed files with 18 additions and 20 deletions
|
@ -48,11 +48,9 @@ class autoProcessComics(object):
|
|||
if len(ext) == 4: # we assume this was a standard extension.
|
||||
inputName = clean_name
|
||||
|
||||
params = {}
|
||||
params['nzb_folder'] = dirName
|
||||
|
||||
if remote_path:
|
||||
params['nzb_folder'] = remoteDir(dirName)
|
||||
params = {
|
||||
'nzb_folder': remoteDir(dirName) if remote_path else dirName,
|
||||
}
|
||||
|
||||
if inputName is not None:
|
||||
params['nzb_name'] = inputName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue