Fix Growl so it only shows up on non-error tracks and display album art in the notification.

CQTexperiment
vspader 2009-03-11 20:26:29 -07:00
parent 16625112af
commit 26d44d6f37
1 changed files with 13 additions and 11 deletions

View File

@ -56,6 +56,7 @@
[pe performSelectorOnMainThread:@selector(setMetadata:) withObject:[playlistLoader readEntryInfo:pe] waitUntilDone:YES]; [pe performSelectorOnMainThread:@selector(setMetadata:) withObject:[playlistLoader readEntryInfo:pe] waitUntilDone:YES];
} }
if (NO == [pe error]) {
if([[NSUserDefaults standardUserDefaults] boolForKey:@"enableAudioScrobbler"]) { if([[NSUserDefaults standardUserDefaults] boolForKey:@"enableAudioScrobbler"]) {
[scrobbler start:pe]; [scrobbler start:pe];
} }
@ -64,10 +65,11 @@
[GrowlApplicationBridge notifyWithTitle:[pe title] [GrowlApplicationBridge notifyWithTitle:[pe title]
description:[pe artist] description:[pe artist]
notificationName:@"Stream Changed" notificationName:@"Stream Changed"
iconData:nil iconData:[[pe albumArt] TIFFRepresentation]
priority:0 priority:0
isSticky:NO isSticky:NO
clickContext:nil]; clickContext:nil];
}
} }
- (void)performPlaybackDidPauseActions - (void)performPlaybackDidPauseActions