Help - Search - Members - Calendar
Full Version: Replacing characters
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
nnic
Hi,

I'm having a bit of trouble with using $replace and using $meta_sep function.

I am using the following code in format from other fields to replace all the ',' in one of my tag fields to be replaced by ; to make the values separate.

[$replace(%vocals%,',',wink.gif]

This seems to work correctly, however in the playlist view I am using this code to display the multiple values in a more readable way.

['('feat. $meta_sep(vocals,', ',' & ')')']

This also normally works, but when I try to replace the ',' with ';', it displays the values in the playlist view as:

Hannah Robinson; Kool Keith; Louise Boone

instead of:

Hannah Robinson, Kool Keith & Louise Boone

However, when i manually replace one of the ; in the tag, then the code works properly again.

What am I doing wrong?

Thanks,

Nic
gfngfgf
When you use the replace script in "Format from other fields", it appears that foobar is actually writing the semicolons into one vocal tag, rather than writing multiple vocal tags. The old masstagger component had a function called "Split multiple fields by separator" (or something similar) that would do exactly what you're trying to do. You can get the masstagger here.
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.