mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Fix excess parameter detection
This commit is contained in:
parent
f514eecf6c
commit
656957f1fc
1 changed files with 5 additions and 0 deletions
|
@ -102,17 +102,22 @@ def auto_fork(section, input_category):
|
||||||
logger.debug('Removing excess parameters: {}'.format(sorted(excess_parameters)))
|
logger.debug('Removing excess parameters: {}'.format(sorted(excess_parameters)))
|
||||||
rem_params.extend(excess_parameters)
|
rem_params.extend(excess_parameters)
|
||||||
else:
|
else:
|
||||||
|
# Find excess parameters
|
||||||
rem_params.extend(
|
rem_params.extend(
|
||||||
param
|
param
|
||||||
for param in params
|
for param in params
|
||||||
if 'name="{param}"'.format(param=param) not in r.text
|
if 'name="{param}"'.format(param=param) not in r.text
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Remove excess params
|
||||||
for param in rem_params:
|
for param in rem_params:
|
||||||
params.pop(param)
|
params.pop(param)
|
||||||
|
|
||||||
for fork in sorted(iteritems(core.FORKS), reverse=False):
|
for fork in sorted(iteritems(core.FORKS), reverse=False):
|
||||||
if params == fork[1]:
|
if params == fork[1]:
|
||||||
detected = True
|
detected = True
|
||||||
break
|
break
|
||||||
|
|
||||||
if detected:
|
if detected:
|
||||||
logger.info('{section}:{category} fork auto-detection successful ...'.format
|
logger.info('{section}:{category} fork auto-detection successful ...'.format
|
||||||
(section=section, category=input_category))
|
(section=section, category=input_category))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue