no more need of $w in installSpotifyAppIfNeeded
fixed counter for tracks (no duplicate)