Tag Completion Indicator

I've been using MP3Tag for a while now and thought I'd share one of the custom solutions I've incorporated.

This one was inspired by a YT video by https://www.youtube.com/@JaylinGant. Probably a good chance he's on the forum here so "Hi".

He had a column called Tag Level with a progress bar. I thought this looked pretty cool but the video didn't go into a lot of detail of how it was setup so I created my own.

My Tag Completion column starts with a number and the bar itself. Both of them are worked out on the percentage of my mandatory tags that are specified in the fields value.

To make things a little more complicated, the required fields change dynamically depending on the release. For example:

  • For multi-disc releases, I expect both DISCNUMBER and DISCTOTAL to be populated.
  • For single-disc releases, neither is required.
  • For vinyl releases, I also check for RIPPER and DATERIPPED.

It looks cool, but why do I need this?

I use a lot of tags and find myself needing to scroll left and right all the time to view them all. While I still need to do this for checking the actual values it's nice to have for a quick check. The column can also be sorted by % complete.

Full disclosure, I used AI help develop this, as well as a lot of other tweaks. Honestly I've found it to be a game changer. I don't recommend just copying the code as I use custom tags and it's setup for my workflow. Just wanted to show what was possible.

Show Mp3tag Tag Completion Code
$num($div($mul($add($if(%track%,1,0),$if(%title%,1,0),$if(%artist%,1,0),$if(%albumartist%,1,0),$if(%year%,1,0),$if(%album%,1,0),$if(%sourceformat%,1,0),$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if(%discnumber%,1,0),0),$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if($or(%disctotal%,%totaldiscs%),1,0),0),$if($eql(%sourceformat%,Vinyl),$if(%ripper%,1,0),0),$if($eql(%sourceformat%,Vinyl),$if(%dateripped%,1,0),0)),10),$add(7,$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),2,0),$if($eql(%sourceformat%,Vinyl),2,0))),2)  $repeat('▰',$div($mul($add($if(%track%,1,0),$if(%title%,1,0),$if(%artist%,1,0),$if(%albumartist%,1,0),$if(%year%,1,0),$if(%album%,1,0),$if(%sourceformat%,1,0),$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if(%discnumber%,1,0),0),$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if($or(%disctotal%,%totaldiscs%),1,0),0),$if($eql(%sourceformat%,Vinyl),$if(%ripper%,1,0),0),$if($eql(%sourceformat%,Vinyl),$if(%dateripped%,1,0),0)),5),$add(7,$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),2,0),$if($eql(%sourceformat%,Vinyl),2,0))))$repeat('▱',$sub(5,$div($mul($add($if(%track%,1,0),$if(%title%,1,0),$if(%artist%,1,0),$if(%albumartist%,1,0),$if(%year%,1,0),$if(%album%,1,0),$if(%sourceformat%,1,0),$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if(%discnumber%,1,0),0),$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if($or(%disctotal%,%totaldiscs%),1,0),0),$if($eql(%sourceformat%,Vinyl),$if(%ripper%,1,0),0),$if($eql(%sourceformat%,Vinyl),$if(%dateripped%,1,0),0)),5),$add(7,$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),2,0),$if($eql(%sourceformat%,Vinyl),2,0)))))  $replace($trimLeft($if(%track%,,'|Track')$if(%title%,,'|Title')$if(%artist%,,'|Artist')$if(%albumartist%,,'|AlbumArtist')$if(%year%,,'|Year')$if(%album%,,'|Album')$if(%sourceformat%,,'|SourceFormat')$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if(%discnumber%,,'|DiscNumber'),)$if($or($grtr($num(%disctotal%,1),1),$grtr($num(%totaldiscs%,1),1),$ifgreater($strchr(%discnumber%,/),0,$grtr($num($regexp(%discnumber%,^.*?/([0-9]+).*$,$1),1),1),0)),$if($or(%disctotal%,%totaldiscs%),,'|DiscTotal'),)$if($eql(%sourceformat%,Vinyl),$if(%ripper%,,'|Ripper'),)$if($eql(%sourceformat%,Vinyl),$if(%dateripped%,,'|DateRipped'),),'|'),'|',', ')

I did not take a closer look at your one-liner, which is over 3'420 characters long. :innocent:

Could you explain how the progress bar should work?
I mean, I see five parts of "Tag completion".
image

But for the first track, with two missing parts, I see three filled and two unfilled parts.
Should that indicate that 60% are filled and 40% are missing?

I had a look at the code, and it indicates that more than 20% and up to 40% of the expected fields are missing. From what I see, depending on normal, multi, and vinyl releases there are 7, 9, or 11 fields expected, so the correct number of fields missing is best inspected from the trailing fields list.


@Valik Very nice idea of how to work with a personal music library. Thanks for sharing!

@Florian You are exactly correct.

The screenshot I took above, is of individual tracks from different albums so I could easily demonstrate varying states of completeness.

I mainly use the column to quickly identify missing tags and sort tracks by their level of completeness when needed.