1.0.0 • Published 6 months ago

music-playlist-generator v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

music-playlist-generator

npm version

Generate M3u playlists from your local library using the hashtags contained in the comment section in music's metadata.

This script relies on my library music-metadata-search. It'll scan all audio files and extract their metadata (ID3v1, ID3v2, APE, Vorbis, and iTunes/MP4 tags). Then it gets the hashtags, and creates playlists for all of them.

For instance, let's say your music ./2Pac/2001 - All Eyez on Me/01. Ambitionz az a Ridah.flac contains a comment with #party, it'll generate a M3u file named #party.m3ucontaining a reference to this track:

#EXTM3U
#PLAYLIST:#party

#EXTINF:0,2Pac - Ambitionz az a Ridah
./2Pac/2001 -  All Eyez on Me/01. Ambitionz az a Ridah.flac

Usage

npm install -g music-playlist-generator
music-playlist-generator ~/Music

Why ?

I have a big music library with files of different formats (.mp3, .flac, .m4a, etc..), and I wanted a way to handle dynamic playlists from anywhere (Android, MacOS, Linux). Using this script, I just have to edit the file's metadata, add a hashtag in the comment, and run it.