Help - Search - Members - Calendar
Full Version: Script to remove numbers from artist tag
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Dreamless
I don't know how to work the script very well. I'm requesting a howto on a script to remove numerics from the artist field.
Yirkha
If the number is present there always, you can use this to "remove the first word":
CODE
$substr(%artist%,$strchr(%artist%,' ')+1,$len(%artist%))


If you want it to work only when the tag begins with a (positive) number:
CODE
$ifgreater(%artist%,0,$substr(%artist%,$strchr(%artist%,' ')+1,$len(%artist%)),%artist%)


Now do yourself a favor, click the "Title Formatting Help" entry in the main menu and try to understand what the above code really does.
foosion
QUOTE(Yirkha @ Mar 27 2008, 01:48) *
If the number is present there always, you can use this to "remove the first word":
CODE
$substr(%artist%,$strchr(%artist%,' ')+1,$len(%artist%))
In that case you can do it a lot easier with the "Automatically fill values" tool in the properties dialog. Set Source to "Other", the format to "%artist%" and the pattern to "%% %artist%". (Note: The pattern is not title formatting code.)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.