Skip to content

Commit

Permalink
Ignore when playlist isn't a regular playlist
Browse files Browse the repository at this point in the history
That way PlaylistFolder won't panic anymore.

The Playlist folders won't be grouped together for now.
  • Loading branch information
fabiofalci committed May 13, 2015
1 parent 6bfad4f commit 1e03c68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spotify/spotify_playlists.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ func (spotify *Spotify) initPlaylist() error {
}
allPlaylists.Wait()
for i := 0; i < allPlaylists.Playlists(); i++ {
if allPlaylists.PlaylistType(i) != sp.PlaylistTypePlaylist {
continue
}
playlist := allPlaylists.Playlist(i)
playlist.Wait()

Expand Down

0 comments on commit 1e03c68

Please sign in to comment.