INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Duplicates detection : is it possible... ?  (Read 1329 times)

Djobydjoba

  • Recent member
  • *
  • Posts: 10
Duplicates detection : is it possible... ?
« 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.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Duplicates detection : is it possible... ?
« Reply #1 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 expression:

   listitem([name], 0, / [)

and then you can use:

   ~nodup=[your field]
Logged
The opinions I express represent my own folly.

Djobydjoba

  • Recent member
  • *
  • Posts: 10
Re: Duplicates detection : is it possible... ?
« Reply #2 on: August 24, 2013, 05:19:49 am »

Perfect ! Many Thanks !!
Logged
Pages: [1]   Go Up