Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not scrobble iTunes Radio #37

Open
demosdemon opened this issue Sep 24, 2013 · 7 comments
Open

Does not scrobble iTunes Radio #37

demosdemon opened this issue Sep 24, 2013 · 7 comments

Comments

@demosdemon
Copy link

iTunes 11.1 GM was released last week. I've been holding out on reporting this to verify if it still doesn't work.

The applescript for OSX to get the current track on iTunes Radio doesn't work. For some reason, and this may need to be filed as a radar, current track cannot be dereferenced when stored in a variable.

So, as written currently in /plugins/iTunes/scripts/currentTrack.scpt, the set t to current track is fine under normal circumstances, but when current track is an iTunes Radio, the get <property> of <variable> fails. Replacing <variable> in all the get statements with current track returns the expected results.

@demosdemon
Copy link
Author

rdar://14909973 (not on openradar because radar was filed before 11.1 was public)

@eartle
Copy link
Collaborator

eartle commented Sep 24, 2013

Hello. Thanks for this! There's also an AppleScript script baked into the binary that has problems. I've changed it as per your suggestion, but it's still not working. Here it is:

tell application "iTunes"
    try
        set L to location of current track
        set L to POSIX path of L
    on error
        set L to ""
    end try
    return artist of current track & "
" & album artist of current track & "
" & album of current track & "
" & name of current track & "
" & ((duration of current track) as integer) & "
" & L & "
" & persistent ID of current track & "
" & podcast of current track & "
" & video kind of current track
end tell

It's been noted that the problem goes away after pausing and resuming the current track, which seems odd. Anyway, any help you have on this would be great.

There are also problems in the Windows version of the Last.fm app when iTunes Radio tracks play. The Last.fm app is crashing for some users, which is of course a Last.fm problem (and AppleScript is not used there), but perhaps it has the same root cause on the iTunes side.

@demosdemon
Copy link
Author

it seems duration of current track returns missing value on iTunes Radio (but funnily enough, not on an advertisement) which causes AppleScript to throw an error on conversion to an integer. duration of current track is not missing value after the pause/play hack.

As for windows, I'll need to dust off my windows vm and check out the COM interface

@demosdemon
Copy link
Author

applescript duration property rdar://15071688

@demosdemon
Copy link
Author

I received an update from Apple. I will test myself later this evening when I get home unless someone confirms its fix before then.

This is a follow-up regarding Bug ID# 15071688.

Engineering has provided the following:

We believe this issue has been addressed in iTunes 11.1.2.

Please test with this release, and update your bug report with the results.

iTunes 11.1.2
Posted Date: October 22, 2013
http://www.apple.com/itunes/download/

@jazzlikethat
Copy link

I'm also unable to scrobble my itunes radio tracks.

Using itunes version: 11.1.3.8

Am surprised that this bug has not been fixed till now.

@Hipska
Copy link

Hipska commented Sep 30, 2015

Does this also apply to other radio streams manually entered in iTunes? Would love to have this also scrobbled. I get a notification of song change in Notification Center.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants