mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-27 17:08:32 +00:00
[devalue] -2
is invalid input
Authored by: bashonly
This commit is contained in:
parent
482713f787
commit
f653cc19ca
@ -40,6 +40,8 @@ def parse_iter(parsed: typing.Any, /, *, revivers: dict[str, collections.abc.Cal
|
||||
-6: -0.0,
|
||||
}
|
||||
if isinstance(parsed, int):
|
||||
if parsed == -2:
|
||||
raise ValueError('invalid input')
|
||||
return resolved[parsed]
|
||||
elif not isinstance(parsed, list):
|
||||
raise ValueError('expected int or list as input')
|
||||
|
Loading…
Reference in New Issue
Block a user