From: Kent Sutherland Date: Mon, 12 Dec 2005 16:34:03 +0000 (+0000) Subject: Fixed audioscrobbler track timings to be correct X-Git-Tag: v1.6.5~16 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/bf725eadb3fd7b6a74b4043ef17366fce403dff7 Fixed audioscrobbler track timings to be correct --- diff --git a/MainController.m b/MainController.m index b2ea25e..14bfb59 100755 --- a/MainController.m +++ b/MainController.m @@ -483,7 +483,7 @@ static MainController *sharedController; [_audioscrobblerTimer invalidate]; } if (length > 30) { - _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length < 240) ? length / 2 : 120) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES]; + _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length / 2 < 240) ? length / 2 : 240) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES]; } } else { _audioscrobblerTimer = nil; @@ -609,7 +609,7 @@ static MainController *sharedController; [_audioscrobblerTimer invalidate]; } if (length > 30) { - _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length < 240) ? length / 2 : 120) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES]; + _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length / 2 < 240) ? length / 2 : 240) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES]; } } else { _audioscrobblerTimer = nil;