Created
September 19, 2011 16:28
-
-
Save artgillespie/1226891 to your computer and use it in GitHub Desktop.
Testing Embedded Gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ESTrack *esTrack = [[ESTrack alloc] initWithFileName:fileName serviceName:serviceName]; | |
// artwork | |
iTunesArtwork *artwork = [track.artworks objectAtIndex:0]; | |
if (artwork) { | |
NSURL *artworkPath; | |
artworkPath = [self artworkPath:persistantID]; | |
[self cacheArtwork:artwork toPath:artworkPath]; | |
// end block; | |
esTrack.artworkName = [artworkPath lastPathComponent]; | |
esTrack.artwork = artwork.data; | |
} | |
// add to the array | |
esTrack.title = track.name; | |
esTrack.artist = track.artist; | |
esTrack.album = track.album; | |
[self sendTrack:esTrack toPeer:peerURL]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment