Skip to main content

elizato-dl 🎵

A command-line tool that downloads YouTube Music playlists as MP3s (or FLAC, M4A, WAV, OPUS) with full square album art, correct track numbers, metadata tags, and synced lyrics — so your music library actually looks the way it's supposed to.

Made by Elizato Winston — first year Software Engineering student at the University of Buea 🇨🇲


Why this exists

Every music downloader I tried either stripped the album art, lost the metadata or just dumped a messy pile of files on my laptop. As a graphic designer, that was unacceptable. So I built the solution myself.


What's new in v1.3.4

  • Real cookie check: besides the file's age, elizato-dl now asks YouTube once whether your login is still accepted, and tells you if the cookies were rotated.
  • Stops early when blocked: after 3 failures in a row (403 / bot check) the run stops and prints how to fix it, instead of hammering YouTube for every remaining track.

What's new in v1.3.0

  • 🖼️ High-resolution square album art — no more stretched 16:9 thumbnails. Art is fetched at high-res and center-cropped square so it displays cleanly in every music app.
  • 🔢 Correct track numbers — tracks are now numbered in the order they appear in the album/playlist, so your player sorts them the way the artist intended instead of alphabetically.
  • 🎧 Clean audio detection — if a playlist track looks like an "official music video" upload (which can contain intros, skits or crowd noise), elizato-dl automatically looks for a clean official-audio version instead.
  • 🍪 Cookie freshness indicator — the environment check now shows a clear ✅ when your cookies are still fresh, not just a warning when they've gone stale.

Installation

pip install elizato-dl

Requirements: Python 3.10+, ffmpeg on your PATH


Quick Start

# Download a playlist as MP3 with lyrics
elizato-dl download "https://music.youtube.com/playlist?list=PL..." --cookies cookies.txt --lyrics

# Download as FLAC
elizato-dl download "https://music.youtube.com/playlist?list=PL..." -f flac --cookies cookies.txt

# Save metadata to a manifest file first, then download
elizato-dl fetch "https://music.youtube.com/playlist?list=PL..." --cookies cookies.txt
elizato-dl download manifest.json --cookies cookies.txt --lyrics

YouTube requires authentication to serve audio streams. You need to export your browser cookies:

  1. Install the Get cookies.txt LOCALLY Chrome extension
  2. Go to youtube.com while logged in
  3. Click the extension → Export → save as cookies.txt in your working directory
  4. Pass it with --cookies cookies.txt

Cookies expire — if you get 403/429 errors or "Sign in to confirm you're not a bot", re-export them. elizato-dl will show you a ✅ if they're still fresh, or a ⚠️ if they've gone stale.


Commands

download

elizato-dl download <URL or manifest.json> [options]

Options:
  -o, --output DIR        Output directory (default: ./music)
  -f, --format FORMAT     Audio format: mp3, m4a, opus, flac, wav (default: mp3)
  --lyrics                Fetch and embed synced lyrics after download
  --no-thumbnail          Skip embedding album art
  --cookies FILE          Path to cookies.txt
  --browser BROWSER       Read cookies from browser (must be closed)

fetch

elizato-dl fetch <URL> [options]

Options:
  -o, --output FILE       Output manifest file (default: manifest.json)
  --cookies FILE          Path to cookies.txt

What you get

Each downloaded track includes:

  • 🎵 Highest quality audio available
  • 🖼️ High-resolution square album art embedded in the file
  • 🔢 Correct track number matching album order
  • 🏷️ Full metadata tags (artist, album, title, year)
  • 📝 Synced lyrics embedded + .lrc file saved alongside (with --lyrics)
  • 🎧 Clean audio automatically swapped in for tracks that look like music videos

Support the project

If elizato-dl saved you time, feel free to donate:

BTC (BEP20): 0x0cEDD7d8f78B45fbA25B05Ada32eB37F7c193590


License

MIT — free to use, modify and distribute.

Metadata

Release files for elizato-dl 1.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elizato-dl 1.3.4
File Size Uploaded Provenance Actions
elizato_dl-1.3.4.tar.gz 20.3 kB With provenance Details for elizato_dl-1.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for elizato-dl 1.3.4
File Interpreter ABI Platform Actions
elizato_dl-1.3.4-py3-none-any.whl Python 3 none any Details for elizato_dl-1.3.4-py3-none-any.whl

Total release size: 39.4 kB

Release files / elizato_dl-1.3.4.tar.gz

Download URL elizato_dl-1.3.4.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
70f80e15e9f2573fbcf98c7179ed38649f744cf0d67f759432ffd42db8aa4836
BLAKE2b-256 checksum
How to use checksums
b75cd79704c2a45ccac76fea15ec246f0e0307cc847e48ac332941b7f1414b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / elizato_dl-1.3.4-py3-none-any.whl

Download URL elizato_dl-1.3.4-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6a0ff7bd8cfa9abbb3ff8671e3088ae71b492dbed7b991b1aff0034daf72c70
BLAKE2b-256 checksum
How to use checksums
4ef43f910e81be58d8edab16c8c6de973f6e1d69316e485062d1729a778527d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for elizato-dl 1.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for elizato_dl-1.3.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page