spotify/cocoalibspotify — Issue #33: Missing metadata in SPAlbumBrowse if browse on already loaded album
Author: mattlevy
Created: 2012-01-12 15:47:51+00:00
State: open

There are two properties that aren't being updated in the Obj-C objects if you call either browseAlbum:inSession: or browseAlbumAtURL:inSession:

Specifically, the year property of the SPAlbum object in the SPAlbumBrowse object doesn't get updated. But I know the year is there, because if you go into the sp_album property of the SPAlbum object and call sp_album_year from the C API, you get the correct year.

The same problem is there for the discNumber property of the SPTrack object returned as part of the array of tracks in the SPAlbumBrowse object. Again, I can get it by calling sp_track_disc with the sp_track property of the SPTrack object.

I didn't track down the problem in the CocoaLibSpotify code. These properties do get transferred if they're downloaded with the first download of the SPAlbum or the first SPAlbumBrowse to get the SPTrack objects. It's only if you try to do a second (or later) browse to fill in missing metadata.