Merge pull request #208 from arabcoders/dev

Made it possible to not use format in preset
This commit is contained in:
Abdulmohsen 2025-03-11 21:10:27 +03:00 committed by GitHub
commit d5efb994ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -129,4 +129,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

View file

@ -111,7 +111,8 @@
<span class="icon"><i class="fa-solid fa-info" /></span>
<span>The yt-dlp <code>[--format, -f]</code> video format code. see <NuxtLink
href="https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#format-selection" target="blank">this
url</NuxtLink> for more info.</span>
url</NuxtLink> for more info.</span>. Note, as this key is required, you can set the value to <code>not_set</code>
to use the default yt-dlp format.
</span>
</div>
</div>