How to find only the smaller of the two?

General discussion related to "Everything".
Post Reply
kinglifer
Posts: 19
Joined: Mon Aug 14, 2023 4:57 pm

How to find only the smaller of the two?

Post by kinglifer »

Way back in 2023 I was helped here (Thank you) and given a syntax that helped me find duplicates in my music.
X:\MUSIC\ ext:mp3;flac regex:"(\d{2} - .+?)\.[^.]+$" addcolumn:regmatch1;audiobitrate dupe:regmatch1

This would return duplicate songs under a folder (I have them named properly) like say:
X:\MUSIC\John Lennon\Double Fantasy (1980)\John Lennon - Double Fantasy - 01 - (Just Like) Starting Over.flac
X:\MUSIC\John Lennon\Lennon (1990)\CD 04\John Lennon - Lennon - 01 - (Just Like) Starting Over.flac

What I wanted is to find only the ones that are the smallest.
In this odd example one is 25,878 kb while the target I want is 23,128 kb

I assumed I could use this $ groupcolors: but as you would know (because you know more than me) it did not do what I expected and changed the results.
Thank you for your time!
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find only the smaller of the two?

Post by void »

Presorting by regmatch1 and size might help:

X:\MUSIC\ ext:mp3;flac regex:"(\d{2} - .+?)\.[^.]+$" addcolumn:regmatch1;audiobitrate dupesort:regmatch1;size-ascending dupe:regmatch1


This will sort items with the same regmatch1 in size ascending order. (smallest file is always shown first)
There should be a dividing line between regmatch1 groups.

Please try the following search to use group colors:

X:\MUSIC\ ext:mp3;flac regex:"(\d{2} - .+?)\.[^.]+$" addcolumn:regmatch1;audiobitrate dupesort:regmatch1;size-ascending dupe:regmatch1 groupcolors:
Post Reply