Commits

Josep Batalle  committed 3a08657

Pull request bug

  • Participants
  • Parent commits f5bb153

Comments (0)

Files changed (1)

 Amarok.Window.ToolsMenu.updateList['triggered()'].connect(updateListJson);
 
 function updateListJson() {
-    var state = executeScript("default");
+    var authToken = curlAuth();
+    listSongs(authToken);
+    getCookie();
     update = false;
     newItems();
-    if(state == '')
-      var state = executeScript("option1");
-    if(state != '')
+    if(authToken == ''){
+      Amarok.alert("Problem with Authentication");
+    }
+    if(authToken != '')
       Amarok.alert("Your music list is updated... Restart Amarok please.");
 }