Freyr downloads music from Spotify, Apple Music, or Deezer links by fetching metadata, sourcing audio from YouTube or YouTube Music, encoding M4A, and tagging files.
Overview
Freyr is a command-line program that turns streaming service URLs into local audio files with embedded metadata and cover art. Given a Spotify, Apple Music, or Deezer track, album, artist, or playlist identifier, it collects title, album, artist, and related tags from the service API, then searches YouTube or YouTube Music for matching audio to download.
After download, tracks are processed into Apple AAC .m4a at a configurable bitrate (defaults described around 320 kbps), metadata and album art are embedded with AtomicParsley, and outputs are organized into a folder structure by artist and album. Batch mode accepts multiple queries on the command line or from an input file, with optional playlist files and filter rules on fields like title, explicit flag, or duration.
Installation options include global npm or yarn packages, building from source with Node.js and Python dependencies, or official Docker images with a volume mount for the working directory. Configuration covers concurrency across query and pipeline stages, output directories, cover image sizing, Spotify and Apple Music API credentials, and Deezer retry behavior.
Operation depends on YouTube Music being available in your region because that is the default raw audio source. The tool reports runtime statistics such as processed track count, output size, and network usage when a batch finishes.
Key features
- Spotify, Apple Music, Deezer URLs
- YouTube and YouTube Music sources
- AAC M4A encoding with bitrates
- Metadata and cover embedding
- Batch queue files
- Concurrent download pipeline
- Docker and npm installation
- Glob-based download filters
Use cases
- Archiving owned playlist metadata locally
- Batch downloading album track lists
- Organizing tagged music libraries
- Running downloads in Docker