mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Fix auto detection of forks. #1738
This commit is contained in:
parent
5fb3229c13
commit
850ba6dcea
3 changed files with 7 additions and 5 deletions
|
@ -41,6 +41,7 @@ def api_check(r, params, rem_params):
|
|||
optional_parameters = json_data['optionalParameters'].keys()
|
||||
# Find excess parameters
|
||||
excess_parameters = set(params).difference(optional_parameters)
|
||||
excess_parameters.remove('cmd') # Don't remove cmd from api params
|
||||
logger.debug('Removing excess parameters: {}'.format(sorted(excess_parameters)))
|
||||
rem_params.extend(excess_parameters)
|
||||
return rem_params, True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue