Page 1 of 2

iTunes Playlist in Indigo 7

PostPosted: Tue Aug 29, 2017 5:12 pm
by Monstergerm
The iTunes plugin on both of my Indigo iTunes servers is not populating the Playlist field for any of my regular or smart playlists. I am pretty sure this worked before under Indigo 6. Any thoughts?

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 9:21 am
by marketability
same here but I'm pretty certain it happened after an iTunes upgrade rather than when I moved to Indigo7

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 10:54 am
by jay (support)
Yeah, it's likely due to an iTunes change since we haven't changed that plugin in many years. I'll look into it.

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 12:22 pm
by Different Computers
Could you share the version of iTunes you're using, so I can know what not to upgrade to?

Alternately, if I'm already there we know it's not a version problem because mine is working.

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 12:39 pm
by Monstergerm
I have problems with iTunes 12.6.2.20.

I tested the iTunes plugin that came with Indigo 6 and it has the same problem with Playlist not getting populated. So it must be iTunes related.

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 12:45 pm
by jay (support)
Monstergerm wrote:
I have problems with iTunes 12.6.2.20.

I tested the iTunes plugin that came with Indigo 6 and it has the same problem with Playlist not getting populated. So it must be iTunes related.


Yep, that version isn't working for me either. Looking into it now.

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 1:21 pm
by marketability
12.6.2.20 for me too
not 100% sure but think it worked with the previous version

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 1:24 pm
by jay (support)
So, iTunes is now returning 0 (zero) for the ID of the playlist that's currently playing. Regardless of the playlist. So this is either a bug or a change in their internal API. That API isn't published so it has to be reverse engineered (and not by me!). So, unfortunately, there's really not much I can do about it until either Apple fixes it (if it's a bug) or until someone figures out what they changed and how to deal with it. I've looked at the very few open source projects that do iTunes control and none seem to have addressed it yet.

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 1:55 pm
by marketability
just out of interest, the playlist ID and name are accessible via applescript (teaching grandmother to suck eggs - apologies)
as a hack around a trigger on track change that runs...

Code: Select all
tell application "iTunes"
   set thePlaylist to name of current playlist
   set thePlaylistID to id of current playlist
end tell
set value of variable "testplay" to thePlaylistID


at least allows me to display the playlist on my control pages

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 4:04 pm
by Different Computers
The mystery deepens:

12.6.2.20 is working fine for me. Status reported in Indigo, Indigo control page elements (that use the iTunes device, not tied to AppleScripts) are working fine.

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 7:58 pm
by jay (support)
It's updating the playlist custom state? Everything else seems to be fine, it's just that the current playlist name state isn't getting updated. If that is working, what OS version are you using on the Mac running iTunes?

Re: iTunes Playlist in Indigo 7

PostPosted: Wed Aug 30, 2017 10:33 pm
by RogueProeliator
12.6.2.20 is working fine for me. Status reported in Indigo, Indigo control page elements (that use the iTunes device, not tied to AppleScripts) are working fine.

12.6.2.20 on OS X 10.11.6 is not working for me... :-(

Re: iTunes Playlist in Indigo 7

PostPosted: Thu Aug 31, 2017 12:29 am
by Korey
Same deal here, everything seems to still be working but the playlist state does not change. :roll:

Apple & iTunes sux, just another push to move me fully to Spotify, now how about a Plugin?

iTunes 12.6.2.20
Indigo 7.0.3
OSX 10.10.5

Re: iTunes Playlist in Indigo 7

PostPosted: Thu Aug 31, 2017 7:01 am
by Different Computers
I'm running 10.11.x (6 I think.)

Here's the funny thing--I never report out the playlist name. I report out the track, its rating, but never its playlist.

Playlist selection from a STATIC subset of them still works though.

Re: iTunes Playlist in Indigo 7

PostPosted: Thu Aug 31, 2017 8:54 am
by jay (support)
Different Computers wrote:
I'm running 10.11.x (6 I think.)

Here's the funny thing--I never report out the playlist name. I report out the track, its rating, but never its playlist.


You can see the value in the Custom States list, below the Device Details tile when you select the device in the device list in the Mac client:

ss137.png
ss137.png (107.32 KiB) Viewed 7439 times