Find and replace \\ separator in Tags


#1

I've been using dbPoweramp for several years to rip and tag CD's to flac and have only just now come across a problem with the default tag separators \\ in ARTIST, ALBUMARTIST GENRE etc.

Someone in the forum has kindly provided a filter to find the files that contain \\

"$meta_sep(Artist,\\)" HAS \\

EDIT: In fact used this filter to find them all
("$meta_sep(Artist,\\)" HAS \\) OR ("$meta_sep(Albumartist,\\)" HAS \\)OR ("$meta_sep(Composer,\\)" HAS \\)

but...

Is there any way to find and replace \\ with ; in any of the aforementioned tag fields?

I have 500 (Edit: nearly 2000 using above longer filter) files spread randomly through 18k tracks so it would be a difficult to find and modify them manually.

I'm new to using MP3Tag with filters and scripts so please go easy on me - step by step instructions would help.

Any help will be gratefully received :slight_smile:

Thanks

Bob


#2

Perhaps the following is not the most elegant way. But it works.
Filter the files with the double backslash
Then build yourself and actiongroup.
The first action of the type "Merge duplicate fields" for ALBUMARTIST, separator \\
Then, as second action in that group perform a simple replace for that field to replace \\ with comma blank.


#3

I'm not sure you really know what \\ means.
It is not actually written in the tags, it just represents multiple tag fields of the same name

ARTIST=a\\b means there are two ARTIST tags in the file (Check with View > Extended Tags)


#4

Yes, I have seen the several artist fields in my test file.
Then I performed the "merge field" action on two files and had a single artist field with all the entries separated by \\. I then executed the replace action on one of the files and got a single artist field with several names in it, separated by comma blank (no wonder).
For the other file I only pressed save and all the merged artists where separate ones again.

I take it that the op does not want to get multi-value fields and so wants to replace the double backslash with something else that mp3tag on save does not interpret as separator between fields.
(I think we had a similar discussion in
\\ problem

So: how do you merge multi-value fields so that they stay merged?


#5

I guessed as much but couldn't find any via google. \\ isn't something that can be included in searches :slight_smile:

Thanks for replying, I've found out something useful here.

Bob


#6

I use a nice plugin called Spicefly SugarCube with Squeezebox Touch and the // messes up some of the useful facilities that SugarCube provides.

What I ended up doing with the information provided by users in this thread was merge the tags separated by \\ and replaced them with either , or &. The software I use searches words within tag fields, so I can still easily search for an artist, band, composer etc within those merged fields.

Many thanks to all. I've managed to 'clean up' nearly 2000 tracks in 15mins - I thinks it would have taken several hours finding and modding each one manually.

And to boot... I've learned a lot about tags and MP3Tag along the way.

Bob


#7

It is quicker and safer to merge the tags already with the desired separator, i.e. ", "


#8

After a bit of playing around with single tracks, that's what I did.

Bob