spotify/cocoalibspotify — Issue #27: methods for getting access to offline playlists
Author: orta
Created: 2011-12-13 04:04:31+00:00
State: open

I've been working on getting access to my playlists offline, to ensure that they are available I loop through all playlists, and all tracks and ensure their offline status is set

if (track.offlineStatus != SP_TRACK_OFFLINE_DONE) {
//etc
}

if ([playlist offlineStatus] != SP_PLAYLIST_OFFLINE_STATUS_YES) {
//etc
}

-
Now trying to access these seems to be posing a problem, I'm not sure how to actually get to them, I've tried storing the folderID, and looking through the private SPSession playlistCache but I can't seem to find an elegant way to access the offline playlists in a way that doesn't require me to go through userPlaylists when that is loaded. Am I doing something wrong?

( implementation file : https://github.com/orta/Mixtapes/blob/master/Mixtape/MixtapeAppDelegate.m )