MPDTagAutoplay implements a loop that fills and purges an MPD play queue
automatically. New songs are chosen randomly from a set of files tagged
with a certain label. The song history is trimmed to a preconfigured length.
Currently these labels are stored in separate files along the client
i.e. this program. It would be much better if the tagging was implemented
by using the sticker functionality of MPD. However, currently (MPD version
0.16) does not support tagging directories, something I need for integration
into MPDXML. I hope to change this someday, effectively storing the tags on
the server, instead of client-side.
For now, tags can be manipulated with tags.py, which provides an interface
to both the user and MPDTagAutoplay itself.
Usage:
./mpdTagAutoplay.py <tag>./tags.py {tag|untag} <tag> <file(s)>./tags.py {tagdir|untagdir} <tag> <dir(s)>
Example:
./mpdTagAutoplay.py jazz
auto fills the play queue with files that are tagged with "jazz". Nice.
./tags.py tag jazz "music/Louis Armstrong/*.mp3"
tags all mp3 files in "music/Louis Armstrong" with "jazz".
Download MPDTagAutoplay (python package)