| ← this is not a pipe
Skandes is a client/plugin for MPD, written in D.
Its use is to enable or disable random mode depending on the playing track. For example, it is possible to automatically disable random mode when playing the first track of an album, and re-enable it when the last track is reached.
Skandes uses the Sofu configuration format, and assumes the configuration file to be located at $HOME/.skandesrc by default.
This is an example in which Skandes disables the random mode when the song "Three Colours" of the album "From Land to Ocean" by "Galleon" or the first song of the album "Lost in a Garden of Clouds" by "Alpha" is played, and enables it back for the song "The Ocean" or the 20th song of "Lost..." :
start-random-mode
(
("Galleon" "From Land to Ocean" "" "Three Colours")
("Alpha" "Lost in a Garden.*" "01")
)
stop-random-mode
(
("Galleon" "From Land to Ocean" "" "The Ocean")
("Alpha" "Lost in a Garden.*" "20")
)
The "special" tracks have to be in the start-random-mode or stop-random-mode blocks. Two different formats can be used to match a track :
("Artist" "Album" "Track" "Title")
or :
{
artist = "Artist"
album = "Album"
track = "Track"
title = "Title"
}
No field is mandatory. For example, both ("Alpha") and { artist = "Alpha" } would disable the random mode as soon as a track by Alpha is played. The fields can use regular expressions.
In addition to start-random-mode and stop-random-mode, the polling frequency can be defined with delay = <seconds> (1 second by default).
For now, Skandes is only available from my svn repository :
svn checkout http://solaria.seeschloss.org/svn/skandes
With "guest" a login and no password.
You will need DMD ≥ 0.127 or GDC ≥ 0.14 to compile it.