+- (void)submitAudioscrobblerTrack:(NSTimer *)timer
+{
+ if ([df boolForKey:@"audioscrobblerEnabled"]) {
+ NS_DURING
+ NSString *title = [[self currentRemote] currentSongTitle], *artist = [[self currentRemote] currentSongArtist];
+ if (title && artist) {
+ [[AudioscrobblerController sharedController] submitTrack:title
+ artist:artist
+ album:[[self currentRemote] currentSongAlbum]
+ length:[[self currentRemote] currentSongDuration]];
+ }
+ NS_HANDLER
+ [self networkError:localException];
+ NS_ENDHANDLER
+ [timer invalidate];
+ _audioscrobblerTimer = nil;
+ }
+}
+