1
0
Fork 0
Web UI to download music with yt-dlp
  • Python 99.6%
  • Makefile 0.1%
Find a file
Julien Riou 9c6360e9c4
Fork to yt-mp3-ui
Signed-off-by: Julien Riou <julien@riou.xyz>
2026-07-26 10:25:35 +02:00
anubis Fork to yt-mp3-ui 2026-07-26 10:25:35 +02:00
bundle [build] Harden build/release workflows (#16358) 2026-03-28 00:10:58 +00:00
devscripts [devscripts] Handle ejs updates for requirements files (#16374) 2026-03-29 16:37:15 +00:00
web Fork to yt-mp3-ui 2026-07-26 10:25:35 +02:00
yt_dlp [ie/bandcamp:weekly] Fix extractor (#16373) 2026-03-29 16:47:19 +00:00
.dockerignore initial commit 2026-04-01 12:29:04 +08:00
.editorconfig [docs] Add an .editorconfig file (#3220) 2022-03-30 04:31:25 -07:00
.gitattributes [docs] Minor improvements (#3309, #3343) 2022-04-08 14:09:10 +05:30
.gitignore initial commit 2026-04-01 12:29:04 +08:00
.pre-commit-config.yaml [misc] Add hatch, ruff, pre-commit and improve dev docs (#7409) 2024-05-26 21:27:21 +02:00
.pre-commit-hatch.yaml [misc] Add hatch, ruff, pre-commit and improve dev docs (#7409) 2024-05-26 21:27:21 +02:00
Changelog.md Release 2026.03.17 2026-03-17 23:25:11 +00:00
CONTRIBUTING.md [build] Harden build/release workflows (#16358) 2026-03-28 00:10:58 +00:00
CONTRIBUTORS Release 2026.03.13 2026-03-13 08:45:00 +00:00
cookies.txt create cookies.txt 2026-04-10 15:35:42 +08:00
docker-compose.yml Fork to yt-mp3-ui 2026-07-26 10:25:35 +02:00
Dockerfile Fork to yt-mp3-ui 2026-07-26 10:25:35 +02:00
entrypoint.sh Fork to yt-mp3-ui 2026-07-26 10:25:35 +02:00
LICENSE addedd a serious Public Domain dedication, see http://unlicense.org/ 2012-12-31 15:32:26 +01:00
Maintainers.md [cleanup] Misc (#15430) 2026-01-29 16:22:35 +00:00
Makefile [ie/youtube] Update ejs to 0.8.0 (#16269) 2026-03-17 23:17:34 +00:00
public.key [build] Sign SHA files and release public key 2023-03-03 22:55:10 +05:30
pyproject.toml Fix default extra for ios platforms (#16376) 2026-03-29 16:41:33 +00:00
README.md Fork to yt-mp3-ui 2026-07-26 10:25:35 +02:00
requirements.txt update and fix some files 2026-04-01 17:07:23 +08:00
SECURITY.md Create SECURITY.md for security policy 2026-04-02 09:27:04 +08:00
supportedsites.md Release 2026.03.03 2026-03-03 16:36:58 +00:00
THIRD_PARTY_LICENSES.txt [ie/youtube] Implement external n/sig solver (#14157) 2025-10-31 23:13:04 +01:00
yt-dlp.cmd [cleanup] Misc (#8598) 2023-12-30 22:27:36 +01:00
yt-dlp.conf create yt-dlp.conf 2026-04-10 15:33:36 +08:00
yt-dlp.sh [cleanup] Misc (#8598) 2023-12-30 22:27:36 +01:00

yt-mp3-ui

A self-hosted web app for downloading music as MP3 from YouTube, powered by yt-dlp.

yt-dlp Web UI Docker Python


About this fork

This is a fork of github.com/Samive/yt-dlp-web. It changes the upstream video downloader into a focused music downloader. The differences from upstream:

  • Music only — every download is extracted to 320K MP3 with metadata and an embedded thumbnail. The format selector is gone; there is nothing to choose.
  • French interface — the whole UI and its messages are in French.
  • Light and dark mode — a theme toggle in the header, defaulting to your operating system preference.
  • Auto-updating yt-dlp — the latest yt-dlp is pulled on container startup, so downloads keep working as sites change.

Features

  • Paste any YouTube (or supported site) URL and fetch track info instantly
  • View thumbnail, title, uploader, duration, views, likes, and upload date
  • One-click download to 320K MP3 with metadata and embedded cover art
  • Live download progress with percentage, speed, and ETA
  • Cancel a download at any time
  • Light and dark themes following your OS preference, with a manual toggle

Quick Start with Docker Compose

git clone https://git.riou.xyz/jriou/yt-mp3-ui.git
cd yt-mp3-ui
docker compose up -d --build

Then open http://localhost:8000 in your browser.

Downloads are written to the downloads volume (see docker-compose.yml). yt-dlp is upgraded to the latest release each time the container starts.

Stop / remove

docker compose down -v

Build from Source

Prerequisites

Build and run

docker build -t yt-mp3-ui .
docker run -d -p 8000:8000 \
  --name yt-dlp-ui yt-dlp-ui

Open http://localhost:8000.


Run without Docker (Development)

Prerequisites

  • Python 3.10+
  • ffmpeg installed and on PATH (download)

Setup

# Install dependencies
pip install yt-dlp fastapi "uvicorn[standard]" httpx

# Start the server
python -m uvicorn web.backend.main:app --reload --port 8000

Open http://localhost:8000.

Auto-update at startup is handled by the container entrypoint. When running the server directly, upgrade yt-dlp yourself with pip install -U yt-dlp.


Usage Guide

  1. Paste a URL — paste any YouTube or supported site link into the input field and click Rechercher
  2. Review track info — thumbnail, title, uploader, duration, views, likes, and upload date are shown
  3. Download — click Télécharger and watch the live progress bar. The file is saved as a 320K MP3
  4. Cancel — click Annuler at any time to stop the download

Use the sun/moon button in the header to switch between light and dark modes. Your choice is remembered.

YouTube authentication (optional)

Some videos require sign-in. Export your cookies using the Get cookies.txt LOCALLY browser extension and mount them:

docker run -d \
  -p 8000:8000 \
  -v $(pwd)/cookies.txt:/app/web/backend/cookies.txt:ro \
  --name yt-mp3-ui \
  yt-mp3-ui

Note: Using cookies with Chrome on Windows may cause issues due to DPAPI encryption. Firefox or Edge cookies work more reliably.


Tech Stack

  • Backend — Python, FastAPI, yt-dlp
  • Frontend — Vanilla HTML/CSS/JS (no framework)
  • Container — Docker with ffmpeg

License

This project uses yt-dlp which is licensed under The Unlicense.