From 0881fce2ab9db64e33127c14fe92476cc811bfd5 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Sun, 6 Apr 2025 01:14:44 +0300 Subject: [PATCH] allow --cookies --- app/library/Utils.py | 3 --- app/library/config.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/library/Utils.py b/app/library/Utils.py index 00b97110..d0022785 100644 --- a/app/library/Utils.py +++ b/app/library/Utils.py @@ -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 diff --git a/app/library/config.py b/app/library/config.py index 7a3e9b8e..169c5e8a 100644 --- a/app/library/config.py +++ b/app/library/config.py @@ -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)