Skip to content

trackfetch logo

trackfetch

A text file of songs in, tagged MP3s with cover art out.

PyPI Python Release License

Install · Features · Documentation · Releases

trackfetch

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.

Features

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

Install

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 trackfetch

Homebrew (macOS and Linux)

brew install trackfetch/tap/trackfetch

Nix (Linux and Apple Silicon Macs)

nix profile install github:trackfetch/trackfetch

Standalone binaries are on the releases page.

Links

Contributing

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

Popular repositories Loading

  1. trackfetch trackfetch Public

    A text file of songs in, tagged MP3s with cover art out. Spotify metadata, best-match YouTube audio via yt-dlp, resumable, cross-platform CLI.

    Python 2 1

  2. homebrew-tap homebrew-tap Public

    Homebrew tap for trackfetch: brew install trackfetch/tap/trackfetch

    Ruby

  3. .github .github Public

    Organization profile and defaults for trackfetch

Repositories

Showing 3 of 3 repositories

Top languages

Loading…

Most used topics

Loading…