From bf725eadb3fd7b6a74b4043ef17366fce403dff7 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Mon, 12 Dec 2005 16:34:03 +0000 Subject: [PATCH] Fixed audioscrobbler track timings to be correct --- MainController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1