Stuff
public text v1 · immutableswitch($0)
{
case("F12")
{
if(!$channel)
{
echo "[NP]: " $tr("This is not a channel window")
halt
}
exec("mocp -i | head -n2 | tail -n1")
{
%line=$1
%band=$str.section(%line,"/",4,4)
%album=$str.section(%line,"/",5,5)
%song=$str.section(%line,"/",6,6)
if($str.isempty(%band))
{
echo "[NP]: " $tr("Broken or no ID3 tag")
halt
}
msg $target "$b|>$b %band / %album : %song"
}
}
}