read hashed value

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: read hashed value

Re: read hashed value

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

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.

read hashed value

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?

thanks!

Top