/ Published in: PHP
Gets currently playing song path and saves it to one of 3 playlists. Comes very handy when it's made a shortcut in the wm's panel.
Requires infopipe.
Reentrant.
Usage: /bm [0|1|2].
Creates files /bm.lock, /bm0.m3u, /bm1.m3u, /bm2.m3u.
Playlists must end with newline. Does not correctly handle diactritic letters.
Requires infopipe.
Reentrant.
Usage: /bm [0|1|2].
Creates files /bm.lock, /bm0.m3u, /bm1.m3u, /bm2.m3u.
Playlists must end with newline. Does not correctly handle diactritic letters.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Removes the path $t from the nth playlist. function _remove($n,$t) { $nazw="/bm".$n.".m3u"; if ($b === false) {;} else { if ($b>0) } } $n=(integer)$argv[1]; if ($blokada == false) //get path to currently played track _remove(0,$b); _remove(1,$b); _remove(2,$b); //add path to a file $nazw="/bm".$n.".m3u";