Skip to content

Commit

Permalink
New iTunes scripting bridge lacks currentTrack.podcast. Use mediaKind…
Browse files Browse the repository at this point in the history
… to check if song is music or not.
  • Loading branch information
ggreer committed May 17, 2016
1 parent 9a43231 commit 7e4999e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ITunesListener.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,7 @@ -(void)onPlayerInfo:(NSNotification*)note

switch (newtrack.playerState) {
case StatePlaying:
if (itunes.currentTrack.podcast) {
[delegate iTunesWontScrobble:newtrack because:@"a podcast"];
goto stop;
}
if (![itunes.currentTrack.kind hasSuffix:@"audio file"]) {
if (itunes.currentTrack.mediaKind != ITunesEMdKMusic) {
[delegate iTunesWontScrobble:newtrack because:@"not music"];
goto stop;
}
Expand Down

0 comments on commit 7e4999e

Please sign in to comment.