# Need help finding improperly tagged ALBUMs

**URL:** https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831
**Category:** Support
**Created:** [February 10, 2020, 8:49pm UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831 "2020-02-10T20:49:01Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Apesbrain](https://community.mp3tag.de/user_avatar/community.mp3tag.de/apesbrain/32/21_2.png) [@Apesbrain](https://community.mp3tag.de/u/Apesbrain)
#### Post date: [February 10, 2020, 8:49pm UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/1 "2020-02-10T20:49:02Z")

</div>

I have recently discovered that some of my Albums have inconsistent Album Gain values. I use foobar2000 converter for these and it happens when an album contains more than one composer or date. I did not notice that foobar2000 sorts those together for ReplayGain calculations.

Is there a way I can filter my albums to find only those that have this condition? It can't be done by folder because some folders purposely have multiple albums in them. (Don't ask; it's a "classical" thing.) It has to be done by tags:

List all %ALBUM% for which %REPLAYGAIN\_ALBUM\_GAIN% is not a constant value.

Can anyone help me with this? Thanks.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 10, 2020, 9:44pm UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/2 "2020-02-10T21:44:51Z")

</div>

MP3tag does not compare values between files, only values of the current file.  
So Mp3tag does not know anything about albums

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [February 11, 2020, 8:57am UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/3 "2020-02-11T08:57:28Z")

</div>

You can use the Export feature to find such albums. Here's an example config:

```
$filename(Dupes - Album AlbumGain.txt,utf-8)$loop(%album%)$loop(%album%)$loopend()$ifgreater(%_max_counter%,1,$puts(f1,'*** Different Album Gain: '$if2(%album%,-- empty tag --))$loop(%album% %REPLAYGAIN_ALBUM_GAIN%,1)$puts(f2,$get(f2)$char(13)$char(10)%_path% %REPLAYGAIN_ALBUM_GAIN%)$loopend()$ifgreater(%_max_counter%,1,
$repeat(=,80)
$get(f1)
$get(f2)$puts(f2,)
,),)$loopend()
```

---

<div class="post-metadata">

### Author: ![Apesbrain](https://community.mp3tag.de/user_avatar/community.mp3tag.de/apesbrain/32/21_2.png) [@Apesbrain](https://community.mp3tag.de/u/Apesbrain)
#### Post date: [February 13, 2020, 6:46pm UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/4 "2020-02-13T18:46:36Z")

</div>

Thanks! Will give that a try.

UPDATE: It seems to work!

---

<div class="post-metadata">

### Author: ![Apesbrain](https://community.mp3tag.de/user_avatar/community.mp3tag.de/apesbrain/32/21_2.png) [@Apesbrain](https://community.mp3tag.de/u/Apesbrain)
#### Post date: [July 20, 2025, 12:19pm UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/5 "2025-07-20T12:19:54Z")

</div>

I know it's been a while, but can you help one more time?

The script you provided works well, but gets confused when there are multiple albums with the same title, e.g. "Chamber Music". (This happens when the albums are by different composers.) Is it possible to loop by folder, not album? What would that script look like?

Thanks!

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 22, 2025, 9:53am UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/6 "2025-07-22T09:53:58Z")

</div>

As this thread is a couple of years old ...  
How many albums would cause confusion - couldn't these be treated manually?  
I don't know your data - but is the folder really the better sort criterion?  
Wouldn't an accurately named album (which includes the composer who seems to make all the difference) be a good idea to circumvent the confusion?  
In general: the $loop() statements initiate the sorting.  
The folder is addressed by `%_directory%`  
If you say that the same album could be by different composers, you could also $loop() by the string generated by `%album% %composer%`.  
As I cannot test if the export would lead to better results or cause other side-effects, I would recommend that you try it yourself.  
The modifcations should not be too difficult.

---

<div class="post-metadata">

### Author: ![Apesbrain](https://community.mp3tag.de/user_avatar/community.mp3tag.de/apesbrain/32/21_2.png) [@Apesbrain](https://community.mp3tag.de/u/Apesbrain)
#### Post date: [July 22, 2025, 10:30am UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/7 "2025-07-22T10:30:26Z")

</div>

Thanks for your reply. I was able to get what I need by using %\_folderpath%. %\_directory% would probably also work.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [August 21, 2025, 10:30am UTC](https://community.mp3tag.de/t/need-help-finding-improperly-tagged-albums/47831/8 "2025-08-21T10:30:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
