Page 1 of 1

read hashed value

Posted: Thu Sep 17, 2009 2:41 pm
by Jo Lambrichts
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?

thanks!

Re: read hashed value

Posted: Thu Sep 17, 2009 3:00 pm
by Teknojnky
you can get the song id via script object: http://www.mediamonkey.com/wiki/index.p ... ngData::ID

or sql: http://www.mediamonkey.com/wiki/index.php/Songs_table

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.