A text file of songs in, tagged MP3s with cover art out.
Install · Features · Documentation · Releases
English · Українська · Русский
trackfetch reads a plain text file with one Artist - Title per line, finds
metadata, cover art and the best audio on YouTube or SoundCloud for each
song and saves the file with full tags. A run can be interrupted at any
point and resumed later, even with a thousand songs in the list.
| Accurate matching | Of five YouTube results, official audio wins; covers, karaoke, nightcore, remixes and reactions lose |
|---|---|
| Metadata and album art | iTunes, Deezer, MusicBrainz, VocaDB and optional Spotify; art from the winning source, then Cover Art Archive, then YouTube thumbnails |
| Format of choice | MP3 for any player, or Opus and M4A without re-encoding |
| Resume where you stopped | Downloaded songs go to done.txt, failures with the reason to failed.txt |
| Any alphabet | Cyrillic and other non-Latin titles are matched correctly and kept |
| No Python required | Binaries for Linux, macOS and Windows on x86_64 and ARM64 |
Homebrew and Nix also install yt-dlp, FFmpeg and Deno for you; with the other ways you need them separately. The default iTunes source needs no API key.
pipx (Python 3.10+)
pipx install trackfetchHomebrew (macOS and Linux)
brew install trackfetch/tap/trackfetchNix (Linux and Apple Silicon Macs)
nix profile install github:trackfetch/trackfetchStandalone binaries are on the releases page.
- PyPI
- Documentation: configuration, metadata and music sources, troubleshooting
- Homebrew tap
Bug reports, matching improvements, docs fixes and translations are welcome. How to report a wrong match and set up a development environment is written in CONTRIBUTING.md. Security issues go through Security → Report a vulnerability, not a public issue.
Licensed GPL-3.0-or-later
