allow --cookies

This commit is contained in:
arabcoders 2025-04-06 01:14:44 +03:00
parent d6ab18ec22
commit 0881fce2ab
2 changed files with 1 additions and 4 deletions

View file

@ -51,9 +51,6 @@ REMOVE_KEYS: list = [
"print_to_file": "--print-to-file",
"cookiesfrombrowser": "--cookies-from-browser",
},
{
"cookiefile": "--cookies",
},
]
YTDLP_INFO_CLS: yt_dlp.YoutubeDL = None

View file

@ -339,7 +339,7 @@ class Config:
self._ytdlp_cli_mutable = self.ytdlp_cli
try:
removed_options = []
ytdl_options = arg_converter(args=self.ytdlp_cli, level=1, removed_options=removed_options)
ytdl_options = arg_converter(args=self.ytdlp_cli, level=True, removed_options=removed_options)
try:
LOG.debug("Parsed yt-dlp cli options '%s'.", ytdl_options)