mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
parent
9f6c068cde
commit
9a958afac8
1 changed files with 8 additions and 5 deletions
|
@ -114,11 +114,14 @@ def auto_fork(section, input_category):
|
|||
else:
|
||||
json_data = json_data.get('data', json_data)
|
||||
|
||||
optional_parameters = json_data['optionalParameters'].keys()
|
||||
# Find excess parameters
|
||||
excess_parameters = set(params).difference(optional_parameters)
|
||||
logger.debug('Removing excess parameters: {}'.format(sorted(excess_parameters)))
|
||||
rem_params.extend(excess_parameters)
|
||||
try:
|
||||
optional_parameters = json_data['optionalParameters'].keys()
|
||||
# Find excess parameters
|
||||
excess_parameters = set(params).difference(optional_parameters)
|
||||
logger.debug('Removing excess parameters: {}'.format(sorted(excess_parameters)))
|
||||
rem_params.extend(excess_parameters)
|
||||
except:
|
||||
logger.error('Failed to identify optionalParameters')
|
||||
else:
|
||||
# Find excess parameters
|
||||
rem_params.extend(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue