Exemplo n.º 1
0
     createCompleteCollectionArtistPlaylist($w, $artist_name, $artist_uri);
     return;
 } else {
     if ($other_action == "play_alfred_playlist") {
         playAlfredPlaylist($w);
         if ($userid != 'vdesabou') {
             stathat_ez_count('AlfredSpotifyMiniPlayer', 'play', 1);
         }
         return;
     } else {
         if ($other_action == "update_library") {
             if (file_exists($w->data() . '/update_library_in_progress')) {
                 displayNotificationWithArtwork("Cannot modify library while update is in progress", './images/warning.png', 'Error!');
                 return;
             }
             updateLibrary($w);
             if ($userid != 'vdesabou') {
                 stathat_ez_count('AlfredSpotifyMiniPlayer', 'update library', 1);
             }
             return;
         } else {
             if ($other_action == "refresh_library") {
                 if (file_exists($w->data() . '/update_library_in_progress')) {
                     displayNotificationWithArtwork("Cannot modify library while update is in progress", './images/warning.png', 'Error!');
                     return;
                 }
                 refreshLibrary($w);
                 if ($userid != 'vdesabou') {
                     stathat_ez_count('AlfredSpotifyMiniPlayer', 'update library', 1);
                 }
                 return;
Exemplo n.º 2
0
<?php

updateLibrary();