commit:19ece93ab14b4b60523c5d1428b6d95414563baf
author:Chip Black
committer:Chip Black
date:Thu Feb 5 03:32:39 2009 -0600
parents:54e27ff9feb2964134f8fe4355609d177a036f81
Clear current when loading new playlist
diff --git a/utunes.pl b/utunes.pl
line changes: +1/-0
index 69a1272..5844585
--- a/utunes.pl
+++ b/utunes.pl
@@ -139,6 +139,7 @@ if (not defined $cmd) {
 	if ($cmd eq 'add') {
 		open PLAYLIST, ">>$uthome/playlist";
 	} else {
+		unlink "$uthome/current";
 		open PLAYLIST, ">$uthome/playlist";
 	}
 	if (@ARGV) {