ytmp-dl
Archive your YouTube Music library into a tagged, Plex-ready music tree.
overview
ytmp-dl turns your YouTube Music library — liked songs, play history, playlists — into a properly tagged, Plex/PlexAmp-ready music archive on disk. It reads your library via ytmusicapi, optionally expands artists to their full discographies, downloads the best audio YouTube serves, then tags every track with canonical MusicBrainz metadata (Spotify fallback): album, track/disc numbers, dates, ISRC, genre and cover art.
Sign-in is painless — it pulls your YouTube session straight from Chrome, Edge, Firefox, Brave, Opera or Opera GX (no manual cookie exports), with pasted cookies as a fallback. Everything runs through a local web GUI or a CLI pipeline, and state lives in SQLite so interrupted runs resume exactly where they left off.
features
- ▸YouTube Music library discovery — liked songs, history, playlists, library songs/albums
- ▸Browser sign-in — reads cookies from Chrome/Edge/Firefox/Brave/Opera directly, no exports
- ▸Selective grabs — pick exactly what to download; auto-generated mixes skipped by default
- ▸Discography expansion — per-artist on demand, never silently queues everything
- ▸Best-quality audio — yt-dlp
bestaudio/best; Opus WebM remuxed losslessly to .ogg - ▸Canonical tags — MusicBrainz per-track matching, Spotify fallback, ISRC/dates/disc/genre/art
- ▸
Artist/Album (Year)/NN - Title.extoutput tree, Plex/PlexAmp ready - ▸Resumable — SQLite WAL state, dedupe by MusicBrainz recording ID, never re-fetches done tracks
- ▸Cookie-resilient — downloads try public first, session cookies only as fallback
- ▸Local web GUI — stat cards, live progress, job queue, artist/track tables, live log
- ▸Ad-hoc additions — paste a URL, playlist or artist name to queue extra content
- ▸Windows one-click build — install.bat → self-contained exe with bundled ffmpeg
screenshots
documentation 1 pages
stack
get started
$ ytmp-dl discover # liked songs, history, playlists → DB $ ytmp-dl artists # resolve artist names → YTM channels $ ytmp-dl discography # expand artists per selected mode $ ytmp-dl download # download + tag pending tracks $ ytmp-dl remux # re-box .webm/.mkv → .ogg + retag $ ytmp-dl retry / status / add <url|artist> $ ytmp-dl gui # web UI on 127.0.0.1:8377 ▊