More > Media Center 16 (Development Ended)
What expression extracts GTIN/EAN/UPC from Album title?
chrisjj:
Is there an expert who can tell me an expression to extract GTIN/EAN/UPC from Album title? e.g.
Album: Bailando tangos, valses y milongas [00724359515922]
GTIN/EAN/UPC: 00724359515922
Thanks.
mark_h:
=listitem([album],1,/[)
Should give you the data along with a trailing ] which could be cleaned up.
=replace(listitem([name],1,/,),/[,)
Haven't tried it though...
chrisjj:
--- Quote from: mark_h on May 24, 2011, 07:36:45 am ---=replace(listitem([name],1,/,),/[,)
--- End quote ---
Thanks Mark.
Amended to replace(listitem([Album],1,/[,),/],) it succeeds... except where there's e.g. [Disc 1 of 2] or anything after the GTIN/EAN/UPC.
I'd like a specific match. Does MC support any kind of regexp in expressions?
Vincent Kars:
Here you can find all the functions: http://wiki.jriver.com/index.php/Media_Center_expression_language
Unfortunately there isn’t a ‘find’ function so the ListItem is the only one to break down a string.
If you want to use regexp have a look at MP3Tag
chrisjj:
--- Quote from: Vincent Kars on May 24, 2011, 09:44:36 am ---Unfortunately there isn’t a ‘find’ function so the ListItem is the only one to break down a string.
--- End quote ---
Thanks.
Navigation
[0] Message Index
[#] Next page
Go to full version