All playlists that I have checked so far has returned 0 subscribers. Am I doing something wrong? Do you need special rights to do this? I am using cocoalibspotify 2.2.0.
Here's the code:
playlistURL = [NSURL URLWithString:@"spotify:user:tunigo:playlist:14KrfXbVeyzVek6UX8jUlH"];
NSLog(@"%@", playlistURL);
[[SPSession sharedSession] playlistForURL:playlistURL callback:^(SPPlaylist *playlist){
if (playlist != nil) {
[SPAsyncLoading waitUntilLoaded:playlist timeout:kSPAsyncLoadingDefaultTimeout then:^(NSArray *loadedPlaylists, NSArray *notLoadedTracks) {
NSLog(@"Nr of subscribers: %d", [playlist.subscribers count]);
NSLog(@"========================");
}];
}
}];
Outputs this:
spotify:user:tunigo:playlist:14KrfXbVeyzVek6UX8jUlH
Playlist name: Dinner with Friends
Nr of subscribers: 0
========================