<?php $s = new Spotify("spotify_appkey.key", "user", "pass"); //$f = $s->getStarredPlaylist(); //var_dump($f->getTracks()); $playlists = $s->getPlaylists(); $pl = $playlists[7]; printf("\n\tPlaylist name: %s\n", $pl); printf("\tOwner: %s\n", $pl->getOwner()); printf("\tCollaborative: %s\n", $pl->isCollaborative() ? 'yes' : 'no'); //if (!$playlists[7]->rename("hove 2010")) { // printf("rename failed\n"); //} echo "\n"; $tracks = $playlists[7]->getTracks(); foreach ($tracks as $track) { $duration = $track->getDuration(); $album = $track->getAlbum(); printf("%s - %s (album: %s, year: %d, #%d) [%02d:%02d] %s [%d%%]\n", $track->getArtist(), $track, $album, $album->getYear(),