From 15969542abaf0ca411045c86a50c4d8a239bbf90 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Tue, 11 Mar 2025 21:06:29 +0300 Subject: [PATCH] restore check for format in preset compiling for YTDLPOpts --- app/library/YTDLPOpts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/library/YTDLPOpts.py b/app/library/YTDLPOpts.py index 84f52802..b989f062 100644 --- a/app/library/YTDLPOpts.py +++ b/app/library/YTDLPOpts.py @@ -82,7 +82,8 @@ class YTDLPOpts(metaclass=Singleton): self._preset_opts["cookiefile"] = str(file) - self._preset_opts["format"] = preset.format + if preset.format: + self._preset_opts["format"] = preset.format if preset.template: self._preset_opts["outtmpl"] = {"default": preset.template, "chapter": self._config.output_template_chapter}