spotify/cocoalibspotify — pull request #30 by JimKnowler (2012-01-04 16:00:27+00:00)
Title: fix: SPImage - populate the spotifyURL property when downloading images

spotifyURL property is not being populated - this issue is seen when downloading images in SPImage objects generated by an SPSearch for albums, artists, tracks(via their album).

- if the beginLoading method is used to populate the spImage property, then the spotifyURL property is never set properly
- the spotifyURL value is ideal for use when caching unique images in client code (i.e. a texture manager)
- the code for populating spotifyURL has been refactored out of initWithImageStruct: into the shared method cacheSpotifyURL