So I'm trying to run some custom code when a user rating is set for a music track, I've set the ratingKey for the TrackItem which is causing the rate option to show in the menu properly, but whenever the rating is set my SetRating function just isn't being called. Here's the function, I've stripped it back and it still doesn't work or get called as far as I can tell:
Is this function not currently working? I've also tried using the exact code here: http://dev.plexapp.com/docs/Functions.html#framework-functions but it just doesn't appear to get called.
The *url* in this case points directly to the JPEG data on some server ("Instagram" in my case). Or in other words: I don't have any "URL Services" in place, as I get the URL directly from the Instagram API - in case that matters here.
When I have selected a Photo in the "overview" (where I see all the thumbs) and push the key 'c', and then go "Rate..." I can set a rating. When I do the same (on the same photo), the menu entry now sais "Change Rating...". So the rating must be stored somewhere succesfully. It's just that my callback above - SetRating - is not called.
I would like to also set an "I like" value with the corresponding Instagram API, so I would like to get notified when the user changes/sets the rating.