Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Finding duplicated tag contents (Read 2114 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Finding duplicated tag contents

I have a whole load of various artists albums which at some point I edited the tags of, in a program other* than Foobar2000, & the contents of the artist, title, & album tags have been doubled up. So, when viewed in Foobar:
Code: [Select]
Artist Name : Big Bud; Big Bud
Track Title : Temptation; Temptation
Album Title : Promised Land Vol 2; Promised Land Vol 2 (CD 1) - Fabio & Cleveland Watkiss
Date : 1996
Genre : Drum & Bass
Composer :
Performer :
Album Artist : Fabio; Cleveland Watkiss
Track Number : 10
Total Tracks :
Disc Number : 1
Total Discs : 2
Most, but not all of these albums, have a shortened version of the album tag for the first copy of the contents, but for now at least I'm ignoring that in the hope that working with artist or title tags will get me through.

I've tried "Rewrite file tags", & "Rebuild MP3 stream" without any effect, & "Verify Integrity" reports "OK".

Code: [Select]
"$meta_num(artist)" GREATER 1
finds me tracks with multiple artists, but some are legitimate.
So,
Code: [Select]
"$meta(artist,0)" EQUAL "$meta(artist,1)"
...but that doesn't seem to help - nearly my entire collection matches. It's as if where there is no second artist, it's wrapping, & the first value is being returned again, but that doesn't seem likely?

Can anyone clarify what's going on, & how I might filter for just the mis-tagged albums. Additionally, a way to actually fix them other than manually editing would be very welcome, although depending on the solution to the first part of my problem, if forthcoming, I hope to be able to figure one out myself.

*I suspected Puddletag or Clementine but have been unable to reproduce the problem with either, so it was likely Deadbeef, Banshee, or Rhythmbox,  or another of the Linux players I have tried over the last few years.

Finding duplicated tag contents

Reply #1
Due to this reference EQUAL may be used only for numbers. Furthermore it doesn't mention whether using title formatting in the right side of the IS operator is allowed, so I would try:
"$meta_num(artist)" EQUAL 2 AND "$stricmp($meta(artist,0),$meta(artist,1))" IS 1
Use this as search query for your whole library, select all results, open the properties, right click the artist tag row, choose 'Format from other fields...', use $meta(artist,0) as pattern, finish it by pressing OK.

Finding duplicated tag contents

Reply #2
Due to this reference EQUAL may be used only for numbers.
Ack, I knew that. Thanks.
I would try:
"$meta_num(artist)" EQUAL 2 AND "$stricmp($meta(artist,0),$meta(artist,1))" IS 1
I should have known that. Thanks again.
select all results, open the properties, right click the artist tag row, choose 'Format from other fields...', use $meta(artist,0) as pattern, finish it by pressing OK.
Right, that works too (thanks once more). First though I needed to fix the album field...
Code: [Select]
$iflonger($meta(album,1),$meta(album,0),$meta(album,1),$meta(album,0))
did that. Next a quick check on my entire collection with
Code: [Select]
"$meta_num(title)" GREATER 1
revealed a few tracks with titles duplicated, but the length of the first occurrence truncated somewhat (right in the middle of words, not to ID3v1 length though, so I don't know how). Fixed those manually (but could have used the same method as for the album field), then finished off using your suggestion for duplicate artists & finally same for titles. All done.

Thanks so much, that taught me a lot.

Finding duplicated tag contents

Reply #3
You can use puddletag to Remove the duplicate entries - there's an action specifically to dedupe fields.

Finding duplicated tag contents

Reply #4
Thanks. I see it, under Functions. I haven't got into Puddletag's actions (when I started needing to do more complex stuff I switched back to using Foobar, under WINE, because I already knew a bit there, & nothing at all in Puddletag) but I have found it to be the best native Linux tagger I've tried - out of lots!

I don't have any with dupes left now, but I'll try to remember that for next time.

Finding duplicated tag contents

Reply #5
I haven't got into Puddletag's actions (when I started needing to do more complex stuff I switched back to using Foobar, under WINE, because I already knew a bit there, & nothing at all in Puddletag) but I have found it to be the best native Linux tagger I've tried - out of lots
thx, the idea was to build a native Linux tagger as capable as mp3tag, and at the same time address limitations in mp3tag we found frustrating e.g. not being able to masstag using one or more tag sources, not being able to use tag sources for a single track etc. etc. etc.

Finding duplicated tag contents

Reply #6
Sorry, didn't realise it was you. Glad I didn't bag it. I was at the point with Puddletag where I was with fb2k a long time back - I knew it could do a lot more than I was using it for, but couldn't get up the initial steep bit of the learning curve. After a few years away from fb2k I went back, & stated getting the hang of it. I haven't got down to that with Puddletag's actions yet.

I did create a duplicate tagged mp3 in Foobar & try to clean it with Puddltag, but without success.

Finding duplicated tag contents

Reply #7
I did create a duplicate tagged mp3 in Foobar & try to clean it with Puddltag, but without success.
Post your action here or preferably in the puddletag forum. You'll find it in ~/.puddletag.