yt-dlp-lemon: Simple wrapper to yt-dlp with only a subset of options.
Project name is changed from “ytdl” to “yt-dlp-lemon”, after user “lol” in the comments convinced me. Thank you for the suggestion! Remember to change the directory name at ~/.local/share/ytdl
to ~/.local/share/yt-dlp-lemon
.
The terror continues…
10 days ago I posted the initial version of this script. Since then lot of changed and added. Here some of those changes since v0.1:
-
-h
is now much more simple, to see full help use-H
-
-f
to repackage to another container format, or-F
to force re-encoding video content with a codec to any other format -
-s
and-b
will operate on sponsors only, and-S
and-B
on complete list of SponsorBlock segments - similarly
-e
and-d
will only embed and download only a few extra metadata and files,-E
and-D
does all extra files and data - new
-R
will download and name files in reverse order, with index starting at 1 for the bottom file, useful for playlists who add newest entry to top - by default all file names are simplified and sanitized a little bit, even if no option
-r
(for very strict) is used
My goal is to make the usage of yt-dlp itself easier with this script, without the need to study help, the manual and to write a configuration file and a script. And you don’t need to test it with various sources. It does not everything what yt-dlp offers, but most of the stuff in the way I like it.
<span style="color:#323232;">git clone https://github.com/thingsiplay/yt-dlp-lemon
</span><span style="color:#62a35c;">cd</span><span style="color:#323232;"> yt-dlp-lemon
</span><span style="color:#323232;">chmod +x yt-dlp-lemon
</span><span style="color:#323232;">./yt-dlp-lemon -h
</span>
Output from simple help:
<span style="color:#323232;">$ yt-dlp-lemon -h
</span><span style="color:#323232;">yt-dlp-lemon </span><span style="font-weight:bold;color:#a71d5d;">[</span><span style="color:#323232;">options</span><span style="font-weight:bold;color:#a71d5d;">] [</span><span style="color:#323232;">url...</span><span style="font-weight:bold;color:#a71d5d;">]
</span><span style="color:#323232;">
</span><span style="color:#323232;">Simple wrapper to yt-dlp with only a subset of options.
</span><span style="color:#323232;">
</span><span style="color:#323232;">options:
</span><span style="color:#323232;">-h show help and exit
</span><span style="color:#323232;">-H show all options, notes and exit
</span><span style="color:#323232;">-m HEIGHT max height
</span><span style="color:#323232;">-f FORMAT repack format
</span><span style="color:#323232;">-I no ignore file
</span><span style="color:#323232;">-s add chapter marks + recognize sponsors
</span><span style="color:#323232;">-b remove sponsored segments
</span><span style="color:#323232;">-c split file by chapters
</span><span style="color:#323232;">-p playlist mode
</span><span style="color:#323232;">-a audio mode
</span><span style="color:#323232;">-d download description files
</span><span style="color:#323232;">-e embed meta and chapters
</span><span style="color:#323232;">-q show filepath only
</span><span style="color:#323232;">-x skip download
</span><span style="color:#323232;">
</span><span style="color:#323232;">Copyright © 2024 Tuncay D. https://github.com/thingsiplay/yt-dlp-lemon
</span>
![](https://kbin.life/media/cache/resolve/entry_thumb/1a/02/1a02c0f7c072acd188bdf67be9cefe7c99d59f59d90f0a26074b479f7dd13da3.png)