-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
Some yt-dlp arguments such as allowed_extractors are expected to be a list.
However, the code in catt that parses -y only supports boolean or plain strings:
Line 72 in ede9c03
| yval = {"true": True, "false": False}.get(yval.lower().strip(), yval) |
I can think of two alternatives to improve on this:
- hardcoding a few parameter names, such as
allowed_extractors - having an heuristic, so if the argument value starts with
[and ends with]the text inside is assumed to be a list
Then if the value is deemed to be a list, it is parsed as such by splitting on commas.
Metadata
Metadata
Assignees
Labels
No labels