INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: Djobydjoba on August 23, 2013, 04:18:32 pm

Title: Duplicates detection : is it possible... ?
Post by: Djobydjoba on August 23, 2013, 04:18:32 pm
When needed, I usually put some additional information into brackets after the title name. The info can be for example:
[Live], [Bonus], [Long Version], [Remixed], [Feat. Rita], etc..

For example, the title Rastaman Vibration can eventually have different versions in the library, and their name appear like this :
Rastaman Vibration
Rastaman Vibration [Live]
Rastaman Vibration [Bonus, Radio Edit]

I known I could use keyword tag (or another tag field) to store these info, I use keywords too for some other data, but for these ones in particular I prefer them in the title name for direct visibility.

I would like that MC consider these three "Rastaman Vibration" as duplicates, for only one of the duplicate file included in a list. So I think of an expression with a string truncation (remove the brackets part) and the ~nodup modifier.

Is it possible ?

Thanks for your help.
Title: Re: Duplicates detection : is it possible... ?
Post by: MrC on August 23, 2013, 05:42:09 pm
Sure, probably the easiest way would be to pretend that " [" is a list item separator.  Using that concept, you can create your own calculated user field, which you'll supply to ~nodup.  Use the ListItem (http://wiki.jriver.com/index.php/Media_Center_expression_language#ListItem) expression:

   listitem([name], 0, / [)

and then you can use:

   ~nodup=[your field]
Title: Re: Duplicates detection : is it possible... ?
Post by: Djobydjoba on August 24, 2013, 05:19:49 am
Perfect ! Many Thanks !!