read hashed value

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Jo Lambrichts
Posts: 4
Joined: Mon Aug 17, 2009 4:26 pm

read hashed value

Post by Jo Lambrichts » Thu Sep 17, 2009 2:41 pm

Hi all,

I want to write a script that stores the album/arist/title tags in an external database (MS SQL).
The script will be triggered each time a CD has been ripped, or it can be triggered manually.
I want to have a kind of 'link' between the library and my database, So I need a value for a song that's unique throughout the whole library.
So if I modify the tags in the library, I still have the link with the song in the SQL-database.
I'm thinking about using the hashed value, but I don't know how to get it in a script.
Or can I get the ID of the song as it is stored in the MM-database?


Posts: 5533
Joined: Tue Sep 06, 2005 11:01 pm

Re: read hashed value

Post by Teknojnky » Thu Sep 17, 2009 3:00 pm

you can get the song id via script object: ... ngData::ID

or sql:

I would not use only the hashed value, as its completely possible to have duplicate tracks resulting in the same hash. This is how the duplicate finder functionality works.

Post Reply