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.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.0

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.0
File Size Uploaded Provenance Actions
elizato_dl-1.3.0.tar.gz 17.5 kB With provenance Details for elizato_dl-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.9 kB

Release files / elizato_dl-1.3.0.tar.gz

Download URL elizato_dl-1.3.0.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
656b0cddfaed30c3b0f6fb5607fb5faee8c4ed1bb35ca163bea7d08f4fccce9b
BLAKE2b-256 checksum
How to use checksums
435fc0bcb6de4cd1eb772a353488d1cd77a45232e44a359903364c195e17f574
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 7, 2026.

Transparency log

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

Download URL elizato_dl-1.3.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2dca0a05fd75f5553100c1a4e9f8dbd6a6c2a1fbf7abb0e5d0635039d523788
BLAKE2b-256 checksum
How to use checksums
0a542c442f793ed901c359db396a6490345f238005e7beb37f0aae31674e8adb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 7, 2026.

Transparency log

Security for elizato-dl 1.3.0

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.0.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 Sep 7, 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