Merge pull request #208 from arabcoders/dev
Made it possible to not use format in preset
This commit is contained in:
commit
d5efb994ec
2 changed files with 5 additions and 1 deletions
|
|
@ -129,4 +129,7 @@ class YTDLPOpts(metaclass=Singleton):
|
||||||
self.presets_opts = {}
|
self.presets_opts = {}
|
||||||
self._item_opts = {}
|
self._item_opts = {}
|
||||||
|
|
||||||
|
if "format" in data and "not_set" == data["format"]:
|
||||||
|
data["format"] = None
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,8 @@
|
||||||
<span class="icon"><i class="fa-solid fa-info" /></span>
|
<span class="icon"><i class="fa-solid fa-info" /></span>
|
||||||
<span>The yt-dlp <code>[--format, -f]</code> video format code. see <NuxtLink
|
<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
|
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>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue