if ($debug){print "Yes we are called and we will add $ARGV[1]\n";}
system("mpc add \"$ARGV[1]\" >/dev/null && mpc play >/dev/null");
}
-elsif ($ARGV[0] eq 'playlist') {
- &checkmute();
- &shuffle();
- &clearplaylist();
- if ($debug){print "Yes we are called and we will play your Playlist\n";}
- system("mpc load playlist >/dev/null && mpc play >/dev/null");
- }
elsif ($ARGV[0] eq 'clearplaylist') {
if ($debug){print "Deleting playlist\n";}
&clearplaylist();
}elsif ( $mpfiresettings{'ACTION'} eq "playweb" ){
$message=system("/usr/local/bin/mpfirectrl","playweb","\"$mpfiresettings{'FILE'}\"","2>/dev/null");
}elsif ( $mpfiresettings{'ACTION'} eq "playlist" ){
-# on keypress play the playlist
- $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
+ $mpd->play();
}elsif ( $mpfiresettings{'ACTION'} eq "emptyplaylist" ){
# on keypress clear the playlist
$mpd->playlist->clear();
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = mpfire
-PAK_VER = 6
+PAK_VER = 7
DEPS = "mpd mpc"