Skip to content

Commit

Permalink
Fix issues due to Sept, 11th Spotify playlist changes #256
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Sep 11, 2018
1 parent eb62752 commit f52860d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spotify-mini-player/src/functions.php
Expand Up @@ -5600,14 +5600,13 @@ function getArtworkURL($w, $type, $id, $highRes = false)
function getPlaylistArtworkURL($w, $playlist_uri)
{
$url = '';
$tmp = explode(':', $playlist_uri);

$retry = true;
$nb_retry = 0;
while ($retry) {
try {
$api = getSpotifyWebAPI($w);
$playlist = $api->getPlaylist($tmp[4], array(
$playlist = $api->getPlaylist($playlist_uri, array(
'fields' => array(
'images',
),
Expand Down

0 comments on commit f52860d

Please sign in to comment.