Lightweight tool to automate downloading and metadata generation with yt-dlp
open sourceGPL-3.0-onlyself-hostablefree
ytdl-sub is a command-line tool that runs yt-dlp from YAML subscription files and prepares the results for Plex, Jellyfin, Emby, Kodi and music players: it downloads, remuxes or transcodes, writes NFO files, music tags and artwork, renames the files and places them in your library. Prebuilt presets turn YouTube channels into TV shows (by date or as collections with seasons), YouTube releases, SoundCloud and Bandcamp discographies into tagged albums, and playlists into music videos, with "Only Recent" retention, keyword filters, SponsorBlock chapters and throttle protection. It has no scheduler or web app of its own: you run ytdl-sub sub periodically with cron (the Docker images have an optional CRON_SCHEDULE), and the GUI image is LinuxServer.io's code-server for editing the configs. Its docs say it aims at users who want lower-level control and recommend Pinchflat for something that "Just Works". It is written in Python and GPL-3.0.
Ways to install
On your own server
Problems it solves
- turn YouTube channels into proper TV shows in Jellyfin with seasons, episode numbers and posters
- describe all my YouTube subscriptions in one config file and download them on a cron schedule
- download a SoundCloud or Bandcamp artist's discography as properly tagged albums
- save YouTube music videos and concerts so Kodi shows them under the right artist
- keep only the last two months of a news channel's videos in my Plex library
- write NFO files and thumbnails for downloaded YouTube videos so Emby picks them up
- a headless YouTube downloader for my server that's configured in YAML, not a web UI
- download a huge YouTube channel in chunks so I don't get throttled or banned
- group several YouTube channels into one TV show with a season per playlist
- only download videos from a channel whose titles contain certain keywords
- download YouTube releases tabs as music albums with genre tags
- embed sponsor segments as chapters or cut them from downloaded YouTube videos
- use yt-dlp options I already know but have the output organized for my media server
- set the genre and content rating on YouTube channels I archive for my kids
Features
- YAML subscription files with presets and overrides
- prebuilt TV show presets for Plex, Jellyfin, Emby and Kodi (by date or collection)
- prebuilt music presets: YouTube releases, full albums, SoundCloud and Bandcamp discographies
- music video presets for Plex, Jellyfin and Kodi
- NFO files, music tags, embedded thumbnails and square album art
- Only Recent retention by date range and maximum files
- keyword, date range and yt-dlp match filters
- SponsorBlock chapters and removal of chosen categories
- split by chapters, audio extraction and file conversion
- throttle protection and chunked initial downloads for large channels
View 4 more
- scripting language for overrides (string functions, regex)
- passes any option to yt-dlp's Python API
- Docker images (headless and code-server GUI) with optional cron scheduling and GPU passthrough
- installs with pip, on Windows, Linux, Linux ARM and Unraid
Limitations
- No built-in scheduler: you run its sub command periodically with cron or another scheduler; the Docker images offer optional cron2
- No web interface of its own: configuration is YAML files, and the GUI image is a browser-based code editor (code-server) for them34
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what ytdl-sub does.
- Pinchflat Your next YouTube media manager
- TubeSync Syncs YouTube channels and playlists to a locally hosted media server
- Tube Archivist Your self hosted YouTube media server
- MeTube Self-hosted video downloader for YouTube and other sites (web UI for yt-dlp)
