Skip to content

-y does not work when argument is a list #453

@lbschenkel

Description

@lbschenkel

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:

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions