ut-party-add now keeps already played songs in the playlist, only
shuffling new entries and entries yet to be played
   
    
     close PID;
 
 open CURRENT, "$uthome/current";
-my $current = <CURRENT> + 0;
+my $current = <CURRENT> + 1;
 close CURRENT;
+print "$current\n";
 
 open PLAYLIST, "$uthome/playlist";
-scalar <PLAYLIST> while $current--;
-my $current = <PLAYLIST>;
 
 open NEWPLAYLIST, ">$uthome/playlist.new";
-print NEWPLAYLIST $current;
+print NEWPLAYLIST scalar <PLAYLIST> while $current--;
 close NEWPLAYLIST;
 
 open NEWPLAYLIST, "| shuffle >>$uthome/playlist.new";
     
 rename "$uthome/playlist.new", "$uthome/playlist";
 
-open CURRENT, ">$uthome/current";
-print CURRENT "0 $current\n";
-close CURRENT;
-
 if ($pid) {
-	print "$pid\n";
 	kill SIGUSR1, $pid;
 }