mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Use dict literal or comprehension for dict creation
This commit is contained in:
parent
c99b497bd8
commit
6d0d2d3f7e
4 changed files with 35 additions and 24 deletions
|
@ -163,17 +163,18 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
|||
status_code=0,
|
||||
)
|
||||
|
||||
params = {}
|
||||
params = {
|
||||
'media_folder': remote_dir(dir_name) if remote_path else dir_name,
|
||||
}
|
||||
|
||||
if download_id and release_id:
|
||||
params['downloader'] = downloader or client_agent
|
||||
params['download_id'] = download_id
|
||||
|
||||
params['media_folder'] = remote_dir(dir_name) if remote_path else dir_name
|
||||
|
||||
if section == 'CouchPotato':
|
||||
if method == 'manage':
|
||||
command = 'manage.update'
|
||||
params = {}
|
||||
params.clear()
|
||||
else:
|
||||
command = 'renamer.scan'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue