Re: [SlimDevices: Plugins] Custom Scan / Tag Mapping syntax

2010-02-22 Thread Danny8
Thanks for the reply and for correcting the error. I figured *exp=* specified a regular expression; I understand regular expressions. I couldn't figure out how it was being used, though. ARTIST(exp=^.*\s(.*)$) Is that regexp syntax used solely for string reduction? I'm guessing it cannot be

Re: [SlimDevices: Plugins] Custom Scan / Tag Mapping syntax

2010-02-22 Thread erland
Danny8;519406 Wrote: ARTIST(exp=^.*\s(.*)$) Is that regexp syntax used solely for string reduction? That exception would probably pick the second to the last word in the ARTIST tag. I'm not sure how the different .* are handled if the ARTIST contains more than two word. The part

[SlimDevices: Plugins] Custom Scan / Tag Mapping syntax

2010-02-21 Thread Danny8
Is there a way to learn more about the syntax used in the tag mapping field of custom scan? The server settings page helpfully lists several examples, but I would like to see a reference page if possible. Is that function syntax unique to Erland's plugins, or is it based on some common library?

Re: [SlimDevices: Plugins] Custom Scan / Tag Mapping syntax

2010-02-21 Thread erland
The format you describe is the way to do it with the tag mapping functionality, but I think it's case sensitive so the last part needs to be: MOVEMENT(text= ) And not: MOVEMENT(TEXT= ) The exp format is standard regular expressions in Perl syntax, search for perl regular expression on Google