1.0.2 • Published 9 years ago
mpdump v1.0.2
mpdump
Dump all the songs stored in a MPD database into a raw list that may be parsed to JSON.
Install
The following tools are written in ECMAScript. You need Node > 6 to run them.
Execute npm i to install the dependencies.
Usage
Dump
- MPD must be running
- execute
node dump.js - it generates a
dump.rawfile in the current directory by executinglistallinfo CTRL+Cto kill the client when the dump is finished. (OK is written on the screen)
Config
By default the client connects on port 6600 and the result is called dump.raw.
Simply edit the dump.js to tweak those values. Don't be scared, the script is only a few lines long!
Parse
dump.rawmust have been generated (see above) in the current directory- execute
node parse.js - it generates a
dump.jsonfile in the current directory - ???
- PROFIT!
Bonus
You can also run npm run dump and npm run parse
License
MIT