git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
63f681a
)
Fixed audioscrobbler track timings to be correct
author
Kent Sutherland
<ksuther@ithinksw.com>
Mon, 12 Dec 2005 16:34:03 +0000
(16:34 +0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Mon, 12 Dec 2005 16:34:03 +0000
(16:34 +0000)
MainController.m
patch
|
blob
|
history
diff --git
a/MainController.m
b/MainController.m
index
b2ea25e
..
14bfb59
100755
(executable)
--- a/
MainController.m
+++ b/
MainController.m
@@
-483,7
+483,7
@@
static MainController *sharedController;
[_audioscrobblerTimer invalidate];
}
if (length > 30) {
[_audioscrobblerTimer invalidate];
}
if (length > 30) {
- _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length
< 240) ? length / 2 : 12
0) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES];
+ _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length
/ 2 < 240) ? length / 2 : 24
0) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES];
}
} else {
_audioscrobblerTimer = nil;
}
} else {
_audioscrobblerTimer = nil;
@@
-609,7
+609,7
@@
static MainController *sharedController;
[_audioscrobblerTimer invalidate];
}
if (length > 30) {
[_audioscrobblerTimer invalidate];
}
if (length > 30) {
- _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length
< 240) ? length / 2 : 12
0) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES];
+ _audioscrobblerTimer = [NSTimer scheduledTimerWithTimeInterval:((length
/ 2 < 240) ? length / 2 : 24
0) target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:YES];
}
} else {
_audioscrobblerTimer = nil;
}
} else {
_audioscrobblerTimer = nil;