trackfetch
Download songs listed in a text file as tagged MP3, M4A, or Opus files, using Spotify metadata and YouTube audio. tldr-pages
On several platforms
Several platforms
Download songs listed in a text file as tagged MP3, M4A, or Opus files, using Spotify metadata and YouTube audio. Requires yt-dlp, ffmpeg, and the $SPOTIFY_CLIENT_ID and $SPOTIFY_CLIENT_SECRET environment variables.
Download every song from a file with one Artist - Title per line into ~/Music/trackfetch
trackfetch path/to/songs.txtIdentifyDownload songs into a specific directory
trackfetch path/to/songs.txt --output path/to/directoryIdentifyKeep YouTube's original audio instead of converting it to MP3
trackfetch path/to/songs.txt --format opusIdentifyName the files by song title only, instead of Artist - Title
trackfetch path/to/songs.txt --title-onlyIdentifyWait a number of seconds between songs to avoid rate limiting
trackfetch path/to/songs.txt --delay 3IdentifyRetry the songs that failed in a previous run
cut --delimiter '|' --fields 1 path/to/directory/failed.txt >path/to/retry.txt && trackfetch path/to/retry.txt --output path/to/directoryIdentifyDisplay help
trackfetch --helpIdentify