Fixed audioscrobbler track timings to be correct
authorKent Sutherland <ksuther@ithinksw.com>
Mon, 12 Dec 2005 16:34:03 +0000 (16:34 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Mon, 12 Dec 2005 16:34:03 +0000 (16:34 +0000)
MainController.m

index b2ea25e..14bfb59 100755 (executable)
@@ -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;