INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Windows => Topic started by: masterjoe on April 25, 2016, 05:19:35 pm

Title: How to find out the unique key of any file?
Post by: masterjoe on April 25, 2016, 05:19:35 pm
Hi there,

currently playing with Python to automate MC and so far my attempts are successful using COM.
In COM there are some methods which allow a file to be added by "key".

However... which field in the database is this "key"? I am using the German translation and have not found any field that corresponds to the unique (auto-assigned) key.

So which one is it or how do I find that out using the GUI? I would like to list the keys in a column for a view.

Thanks.
Title: Re: How to find out the unique key of any file?
Post by: JimH on April 25, 2016, 05:42:43 pm
You might find some answers here:
http://yabb.jriver.com/interact/index.php?board=6.0

I'll move your thread there.

MCWS is the preferred interface now.  COM will still work, but it isn't being developed now.
Title: Re: How to find out the unique key of any file?
Post by: blgentry on April 25, 2016, 05:43:44 pm
Filekey() (http://wiki.jriver.com/index.php/File_Path_and_Identifier_Functions#FileKey) is the relevant function.  You can make an expression column in the GUI and use that function there to return the filekey.  The rest of the linked document on the Expression Language is quite valuable as well.


Brian.
Title: Re: How to find out the unique key of any file?
Post by: masterjoe on April 27, 2016, 05:51:11 am
Filekey() (http://wiki.jriver.com/index.php/File_Path_and_Identifier_Functions#FileKey) is the relevant function.  You can make an expression column in the GUI and use that function there to return the filekey.  The rest of the linked document on the Expression Language is quite valuable as well.


Brian.

Ah, thanks this was what I am looking for :)