1

I've built a small desktop app for myself that logs listens from iTunes and Rdio so I can create powerful playlists based on how I listen to music over time, but it requires each track to have a unique ID that will never change, regardless of which app I used to listen. I currently retrieve unique IDs from iTunes using appscript in Python:

from appscript import *
it = app('iTunes')
it.current_track.persistent_ID()

However, when poking through the Rdio Suite AppleScript Dictionary I don't see any kind of unique ID attached to tracks. Suggestions?

TheMaster
  • 45,448
  • 6
  • 62
  • 85
Brandon Durham
  • 7,096
  • 13
  • 64
  • 101

2 Answers2

1

Rdio has an API. Here's some info on how to get the currently playing track: http://groups.google.com/group/rdio-api/browse_thread/thread/23d52c77b4e56a55/3b8a897f0835fd90

You can also get the url of the currently playing track via Applescript. This should serve as a sort of unique ID for the track:

osascript -e 'tell app "Rdio" to get the rdio url of the current track'
monsur
  • 45,581
  • 16
  • 101
  • 95
0

All Rdio objects, including Tracks have a key attribute that is the unique ID that can be used to look it up in Rdio using get.

Nova Entropy
  • 5,727
  • 1
  • 19
  • 32