Author Topic: "Show files with inconsistent album tags" for Album Rating (and other tags)  (Read 772 times)

JMuller

  • Jr. Member
  • **
  • Posts: 62
Some of my albums have inconsistent album ratings across tracks. I was hoping that the "Show files with inconsistent album tags" filter would show which albums I need to fix, but it seems to be limited to only a few tags such as Album Artist or Genre. I also could not find a way to select those albums using the Custom Search.

The best workaround I found for now is to create a playlist that matches all "Album rating has no value", then enable the show highlighting rule in the main panel to highlight albums that contain tracks with an album rating. For some reason the inconsistent albums show up in that playlist, as seen in the screenshot below: one track has no album rating, all other tracks have an album rating; the album is highlighted but still shows up in the list of unrated albums.

Last Edit: January 27, 2025, 01:38:20 PM by JMuller

tjinc

  • Sr. Member
  • ****
  • Posts: 833
I can't quite work out if you are asking for help here or requesting implementation of a new feature.

The issue with your current workaround is that it only includes albums that have at least one track unrated. FWIW here's what I would do:

VirtualTag:
Code
$If($Sub($Max(<Album Rating>,<Album>),$IsNull(<Album Rating>,0,$Min(<Album Rating>,<Album>)))=0,T,F)
Then an auto playlist:
   VirtualTag IS F
   Select by: Album

(I haven't spend too long on this so there might well be a better way but this does work. It is complicated by the fact that the Min and Max functions ignore null fields.)

hiccup

  • Hero Member
  • *****
  • Posts: 9130
Or another approach:

create a virtual tag:
label: Album rating inconsistent
Code
$If(<Album Rating>=$IsNull($IsNull(<Album Rating>,,$Sum(<Album Rating>,<Album>)),,$Div($IsNull(<Album Rating>,,$Sum(<Album Rating>,<Album>)),<Album Track Count>)),,inconsistent)
Then set up a library filter or a playlist that has the rule:
Album rating inconsistent has a value

I'm guessing it will give the same result as tjinc's solution. (mine may be a bit overthought)
As tjinc mentioned: report back if your issue is not solved by one of these solutions.
Last Edit: January 27, 2025, 08:39:21 PM by hiccup

JMuller

  • Jr. Member
  • **
  • Posts: 62
I can't quite work out if you are asking for help here or requesting implementation of a new feature.

The issue with your current workaround is that it only includes albums that have at least one track unrated. FWIW here's what I would do:

VirtualTag:
Code
$If($Sub($Max(<Album Rating>,<Album>),$IsNull(<Album Rating>,0,$Min(<Album Rating>,<Album>)))=0,T,F)
Then an auto playlist:
   VirtualTag IS F
   Select by: Album

(I haven't spend too long on this so there might well be a better way but this does work. It is complicated by the fact that the Min and Max functions ignore null fields.)

Sorry if I wasn't clear, I was kind of hoping for both. I think it would be a useful extension of the existing "Show inconsistent tags" feature. Thank you very much for taking the time to come up with the virtual tag!

Or another approach:

create a virtual tag:
label: Album rating inconsistent
Code
$If(<Album Rating>=$IsNull($IsNull(<Album Rating>,,$Sum(<Album Rating>,<Album>)),,$Div($IsNull(<Album Rating>,,$Sum(<Album Rating>,<Album>)),<Album Track Count>)),,inconsistent)
Then set up a library filter or a playlist that has the rule:
Album rating inconsistent has a value

I'm guessing it will give the same result as tjinc's solution. (mine may be a bit overthought)
As tjinc mentioned: report back if your issue is not solved by one of these solutions.

Thank you as well!

In case you're curious about the results, both options work with no differences.
Last Edit: January 27, 2025, 09:05:09 PM by JMuller

hiccup

  • Hero Member
  • *****
  • Posts: 9130
And here's a third option.

This one should fulfill the latter part of your wish:  "(and other tags)"

It requires two virtual tags:

virtual tag 1
label: TagToCheck

Code
<Album Rating><Album Artist><Album><Disc#>
virtual tag 2
label: Inconsistent album tag

Code
$If(<Album Track Count>=$Count(<TagToCheck>),,inconsistent)

Then set up a library filter or a playlist that has the rule:
Inconsistent album tag has a value


To define what tag should be checked for consistency over a whole album:
That is defined by the first tag that is listed in the virtual tag TagToCheck.

So if you e.g. want it to check if the year is consistent for all tracks of an album, in the example given, change:
<Album Rating><Album Artist><Album><Disc#>
 to:
<Year><Album Artist><Album><Disc#>

Or if you want to check if all album tracks are of the same audio coding, use:
<Kind><Album Artist><Album><Disc#>

etc. etc.
 
Last Edit: January 30, 2025, 07:19:35 PM by hiccup