Use dict literal or comprehension for dict creation

This commit is contained in:
Labrys of Knossos 2018-12-31 12:21:16 -05:00
commit 6d0d2d3f7e
4 changed files with 35 additions and 24 deletions

View file

@ -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'