到目前为止,我检查过的所有播放列表都返回了 0 个订阅者。难道我做错了什么?您是否需要特殊权限才能执行此操作?我正在使用 cocoalibspotify 2.2.0。
这是代码:
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(@"========================");
}];
}
}];
输出这个:
spotify:user:tunigo:playlist:14KrfXbVeyzVek6UX8jUlH
Playlist name: Dinner with Friends
Nr of subscribers: 0
========================