diff --git a/app/library/YTDLPOpts.py b/app/library/YTDLPOpts.py index 7e1c062d..84f52802 100644 --- a/app/library/YTDLPOpts.py +++ b/app/library/YTDLPOpts.py @@ -82,8 +82,7 @@ class YTDLPOpts(metaclass=Singleton): self._preset_opts["cookiefile"] = str(file) - if preset.format: - self._preset_opts["format"] = preset.format + self._preset_opts["format"] = preset.format if preset.template: self._preset_opts["outtmpl"] = {"default": preset.template, "chapter": self._config.output_template_chapter} @@ -129,4 +128,7 @@ class YTDLPOpts(metaclass=Singleton): self.presets_opts = {} self._item_opts = {} + if "format" in data and "not_set" == data["format"]: + data["format"] = None + return data diff --git a/ui/components/PresetForm.vue b/ui/components/PresetForm.vue index 4419bc38..e4ef9d5e 100644 --- a/ui/components/PresetForm.vue +++ b/ui/components/PresetForm.vue @@ -111,7 +111,8 @@ The yt-dlp [--format, -f] video format code. see this - url for more info. + url for more info.. Note, as this key is required, you can set the value to not_set + to use the default yt-dlp format.