There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

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>
lol , (edited )
@lol@discuss.tchncs.de avatar

deleted_by_author

  • Loading...
  • thingsiplay OP , (edited )

    That’s actually a good point, one that I made myself over other projects in the past. Guess I did not think through this entire thing. The script itself is kind of like what an alias means to be, a shorter and simple alias to a more complex command that already exist. In fact it started and got evolved from that. The script is not a project on its own like yt-dlp being independent from youtube-dl. But I admit this is a bad excuse.

    I would like to keep the simple and short to remember ytdl executable name. And if anyone wants to, can still rename it to something else when installing. On the other hand the project title and how it is referred to as has ambiguity to it. Changing the readme and some descriptions and titles is not a big deal (in this early stage), but changing the path to the project comes at a huge cost, meaning the Github link.

    lol , (edited )
    @lol@discuss.tchncs.de avatar

    deleted_by_author

  • Loading...
  • thingsiplay OP ,

    You are 100% and completely convinced me. Right now I’m in the process of renaming the project and decided to rename the executable too. All your points are on point and is something I would probably say about other projects as well.

    As for why I was reluctant to change project name was not only the Github links, in example in the executable and documentation of older version people downloaded. But also the default ignore file I am using with the script, that is created and read/written at “~/.local/share/ytdl” . It will probably annoy people who already downloaded and using it; and I hate that its doing it. But better I do it now that later.

    So thank you for this suggestion and explanation.

    Edit: I’m going with yt-dlp-lemon , as in easy peasy, lemon squeezy. Probably not as descriptive as you hoped for, but I don’t think this is bad.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines