".encode('utf-8', $song)." |
$Lang::tr{'Scan for Files'} | |
$Lang::tr{'Scan from Directory'} | |
$Lang::tr{'artist'} - ".$mpd->stats()->artists()." | $Lang::tr{'album'} - ".$mpd->stats()->albums()." |
$Lang::tr{'year'} | $Lang::tr{'genre'} |
$Lang::tr{'artist'} | $Lang::tr{'title'} | $Lang::tr{'album'} |
$Lang::tr{'Existing Files'} | |||
$Lang::tr{'Pages'} | $Lang::tr{'artist'} $Lang::tr{'title'} |
$Lang::tr{'number'} | $Lang::tr{'album'} | END ; my $lines=0;my $i=0;my $begin;my $end; if ( $mpfiresettings{'PAGE'} eq 'all' ){ $begin=0; $end=$#songs; }else{ $begin=(($mpfiresettings{'PAGE'}-1) * 100); $end=(($mpfiresettings{'PAGE'} * 100)-1); } foreach (@songs){ if (!($i >= $begin && $i <= $end)){ #print $begin."->".$i."<-".$end."\n"; $i++;next; } my @song = split(/\=/,$mpd->collection->song($_)); @song = reverse @song; if ($lines % 2) { print "
".encode('utf-8', $song[0])." ".encode('utf-8', $song[1])." | ";
print "".encode('utf-8', $song[2])." | "; print "".encode('utf-8', $song[3])." | "; $lines++; $i++; } print "