# Music Downloader

A local web page that turns a music link from a streaming service into tagged MP3 files. A command-line downloader does the matching and conversion. I built the page around it: a track preview, a one-at-a-time queue, live progress per track, a fallback for lists that belong to other people, and one-click start and stop launchers.

- **Facts:** 2026, Personal project, Completed, role: Sole developer
- **What I did:** I wrote the web page, the queue, the progress stream, the fallback and the launchers around an open-source command-line downloader, alone, for my own use.
- **Scope:** fullstack
- **Domain:** media
- **Stack:** Python, FastAPI, Server-Sent Events, HTML, CSS, JavaScript, FFmpeg, Playwright, Claude Code
- **Page:** https://sergey-petrinich.vercel.app/work/music-downloader
- **Screenshot:** https://sergey-petrinich.vercel.app/work/music-downloader.webp

Capabilities:

- Link pasted into a preview with covers, artists, durations and checkboxes
- Tracks already in the Downloads folder badged, unchecked and sorted last
- Filename cleanup field that strips a repeated phrase before saving or across the folder
- Log panel with copy and refresh, fed from an in-memory buffer
- Single worker thread so batches run one after another
- Rolling window of up to 5 tracks at once inside a batch
- MP3 at 320 kbps with title, artist and cover written by the downloader
- Existing files never overwritten
- Per-track stage and percentage streamed to the page over server-sent events, with a summary of saved and failed tracks at the end
- Fallback that reads the public view of other people's lists and looks each track up
- Headless start with no console window; single instance that reopens a tab
- Quit button and a stop script that ends the process on the port

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
