From 96481f95195e95445e1795197cba80bd6bfc1820 Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Thu, 29 Jan 2009 22:29:53 +0100 Subject: [PATCH] Fixed some mpfire things --- config/mpfire/mpfire.pl | 7 ------- html/cgi-bin/mpfire.cgi | 3 +-- lfs/mpfire | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/config/mpfire/mpfire.pl b/config/mpfire/mpfire.pl index e72b2fcae6..66413145de 100644 --- a/config/mpfire/mpfire.pl +++ b/config/mpfire/mpfire.pl @@ -26,13 +26,6 @@ elsif ($ARGV[0] eq 'playadd') { 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(); diff --git a/html/cgi-bin/mpfire.cgi b/html/cgi-bin/mpfire.cgi index c49342807c..ae86226747 100644 --- a/html/cgi-bin/mpfire.cgi +++ b/html/cgi-bin/mpfire.cgi @@ -231,8 +231,7 @@ if ( $mpfiresettings{'ACTION'} eq "scan" ){ }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(); diff --git a/lfs/mpfire b/lfs/mpfire index 4403121051..b163a95292 100644 --- a/lfs/mpfire +++ b/lfs/mpfire @@ -30,7 +30,7 @@ THISAPP = mpfire-$(VER) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = mpfire -PAK_VER = 6 +PAK_VER = 7 DEPS = "mpd mpc" -- 2.39.2