spotify/cocoalibspotify — Issue #16: initUserToplistWithUsername - default user
Author: martinkamara
Created: 2011-10-19 15:09:33+00:00
State: open

Hi,

In SPToplist.m you forgot to forward the actual username when querying for the user's top list.

trackBrowseOperation = sp_toplistbrowse_create(self.session.session,
SP_TOPLIST_TYPE_TRACKS,
region,
NULL,
&toplistbrowse_tracks_complete,
self);

Should be something like this I guess (works for me)

trackBrowseOperation = sp_toplistbrowse_create(self.session.session,
SP_TOPLIST_TYPE_TRACKS,
region,
[self.username UTF8String],
&toplistbrowse_tracks_complete,
self);

Kind regards
Martin