MyMP3Collection

MyMP3CollectionYour whole MP3 collection, without moving a single file.

Point the app at your music folders, and it reads the tags, remembers where each file is and fetches year, genre and cover from MusicBrainz. Play straight from the file, make playlists and copy chosen artists to a USB drive. The audio files stay where they are, and the folder is mounted read-only.

Music folders~/Music · read only
MyMP3Collectionlocalhost:5070Ready
Try it:
CoverAlbum and folderTracksCover fromStatus
Hunting High and Low/Users/ola/Music/a-ha/Hunting High and Low–embedded in filewaiting
Melody A.M./Users/ola/Music/Röyksopp/Melody A.M.–folder.jpgwaiting
Kind of Blue/Users/ola/Music/Miles Davis/Kind of Blue–MusicBrainzwaiting
Industrial Silence/Users/ola/Music/Madrugada/Industrial Silence–MusicBrainzwaiting
The app reads the tags and remembers where each file is. A new scan only reads files that are new or changed, and marks files that have been moved.

MyMP3Collection

1.0.0

The sister project of MyRecordCollection, with the same design. A Flask web application with an SQLite database that runs in Docker Desktop at localhost:5070, in English and Norwegian, in light and dark mode.

Scans
MP3, M4A/M4P, FLAC, OGG, AIFF and WAV in as many root folders as you like, in your home folder and on external drives. New scans only read new and changed files, and mark files that have been moved or deleted.
Organises
Tracks with the same album tag in the same folder become one album. CD1/CD2 are merged, and albums with several artists become “Various artists”. Files without tags get names from the file name.
Fetches
Covers from the image in the audio file, cover.jpg/folder.jpg or the Cover Art Archive. Original year, genre and label from MusicBrainz, with Discogs as a fallback.
Plays
Straight from the file where it is, with the player above the track list. Your own playlists can be sorted by drag and drop and exported as .json or .m3u.
Exports
Pick artists or albums and copy them to a USB drive as Eksport_YYYY-MM-DD/Artist/Album (Year)/, with cover.jpg, a free space check and names that FAT32 and exFAT accept.
Leaves alone
The tags in the files are never changed. Edits are stored in the app only, and survive new scans. Backups contain the database and covers, not the audio files.
5070web GUI in Docker
0 filescopied when scanning
EN | NOEnglish and Norwegian
Read the technical description
The album overview. The sidebar shows playlists and genres.

How it works

From music folder to playlist in four steps:

  1. Choose the music folders

    The folder from .env is always included. Under Scan folders you add more with the folder picker, for example an external drive under /Volumes.

  2. Scan

    The scan runs in the background with progress. 18,000 tracks take a few minutes the first time and seconds after that, because unchanged files are skipped.

  3. Fetch info and covers

    One click fetches for every album that lacks it. MusicBrainz allows one request per second, so it takes 2–3 seconds per album.

  4. Play, make lists, export

    Add albums and tracks to playlists and export them as .json. Copy a selection to the USB drive from Export.

The album page. The player sits above the track list, and the path can be copied and pasted into Finder.
SituationWhat to do
The Apple Music librarySet MUSIC_DIR to ~/Music/Music/Media.localized/Music and give Docker Desktop Full Disk Access in macOS.
Music on several drivesAdd each drive as its own root folder. Folders that overlap one you already have are refused, so nothing is registered twice.
The car or the cabinTick the artists under Export, pick the USB drive and press Start export. A second export the same day becomes Eksport_…_2.
Wrong year or missing coverEdit the album: search MusicBrainz or Discogs, or paste a link. The change is stored in the app, not in the file.
A playlist for another computerExport .json here and Import playlist there. Tracks are found again by path, or by artist and title.
New Macscripts/pakk.sh --med-data and scripts/installer.sh. With the same folder structure every track is recognised.

Installation

The app runs in Docker Desktop. The music folder is mounted read-only, the home folder too so you can add more folders, and /Volumes read-write for exporting to external drives.

Docker Desktop on a Mac

$ cd ~/Desktop/MyMP3Collection
$ bash scripts/installer.sh
# open http://localhost:5070 → Scan folders

The installer checks Docker, creates .env with a new SECRET_KEY, asks where your music is, builds and starts the container and asks whether a backup should be restored. Docker Desktop needs Full Disk Access to read the Apple Music folder.

Move the collection to a new computer

# on the old computer
$ bash scripts/pakk.sh --med-data
# on the new one, after unzipping
$ bash scripts/installer.sh

The package carries the database and covers, not the audio files. The app remembers tracks by their path inside the music folder, so if MUSIC_DIR points to a folder with the same structure, every track is recognised with its info, cover, edits and playlists.

If start-up fails with “operation not permitted”, or the scan finds 0 files, Docker Desktop lacks Full Disk Access: System Settings → Privacy & Security → Full Disk Access, then restart Docker Desktop. Without Docker: pip install -r requirements.txt and python app.py.

Screenshots

The interface is available in English and Norwegian, in light and dark mode, and works on mobile too. The library and covers in the screenshots were made for the demonstration. Click to see the full-size image.

Sister project: MyRecordCollection

The register for your LP and CD records, with the same design. Import purchase lists from the record fair, scan the barcodes on the backs and fetch release and cover from MusicBrainz and Discogs.

Go to MyRecordCollection →