# How to Filtering Tracks with Same Album Name but Different Album Artist

**URL:** https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899
**Category:** Support
**Created:** [December 20, 2024, 8:51am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899 "2024-12-20T08:51:54Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Fisher](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fisher/32/18709_2.png) [@Fisher](https://community.mp3tag.de/u/Fisher)
#### Post date: [December 20, 2024, 8:51am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/1 "2024-12-20T08:51:54Z")

</div>

Hi, I'm trying to create a filter in mp3tag to find specific music files, and I'm having some trouble figuring out the right syntax.

Here's what I need to filter for:

I want to find tracks where there's another track in my library that:

1. Shares the **same Album Name**

2. But has a **different Album Artist**

I want to use this filter to find out the tracks within albums that have inconsistent "Album Artist" tags.

Does anyone know how to achieve this using mp3tag's filtering capabilities? Thank you!

---

<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: [December 20, 2024, 9:00am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/2 "2024-12-20T09:00:28Z")

</div>

MP3tag does not compare data in different files. Any filer criteria have to be addressable from the current file.

So: if you have the ALBUMARTIST's name somewhere in the path, it is possible to compare those pieces of information.

I think in general

> [@Fisher](#):
>
> - Shares the **same Album Name**
> - But has a **different Album Artist**

is true for every "Greatest Hits" and "Best of" album

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 20, 2024, 9:14am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/3 "2024-12-20T09:14:53Z")

</div>

> [@Fisher](#):
>
> Does anyone know how to achieve this using mp3tag's filtering capabilities?

This is not possible using [Filters](https://docs.mp3tag.de/filter/).

But you could try to sort by the column with the content ALBUM.  
Then you should see where the ALBUMARTIST is different.  
If you align\* the column for ALBUMARTIST near to ALBUM, it should be easy to spot different ALBUMARTISTs

\*\* you can drag & drop every column to whatever position is best for your task.

---

<div class="post-metadata">

### Author: ![Fisher](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fisher/32/18709_2.png) [@Fisher](https://community.mp3tag.de/u/Fisher)
#### Post date: [December 20, 2024, 10:13am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/4 "2024-12-20T10:13:05Z")

</div>

Thanks everyone, I've managed to write a Python script to achieve what I needed. This topic is solved. 😀

---

<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: [December 20, 2024, 10:15am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/5 "2024-12-20T10:15:15Z")

</div>

> [@Fisher](#):
>
> a Python script

If this is the solution - then it would be nice if you could publish it.

---

<div class="post-metadata">

### Author: ![Fisher](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fisher/32/18709_2.png) [@Fisher](https://community.mp3tag.de/u/Fisher)
#### Post date: [December 20, 2024, 10:57am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/6 "2024-12-20T10:57:01Z")

</div>

[python code - Check Album Artist Inconsistency.rar](https://community.mp3tag.de/uploads/short-url/hX7oTWO88Wyr5bfeiJjjGgGQmP8.rar) (2.0 KB)

---

<div class="post-metadata">

### Author: ![Fisher](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fisher/32/18709_2.png) [@Fisher](https://community.mp3tag.de/u/Fisher)
#### Post date: [December 20, 2024, 10:57am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/7 "2024-12-20T10:57:44Z")

</div>

ok, I have published my python script

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 20, 2024, 11:12am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/8 "2024-12-20T11:12:42Z")

</div>

So we need

- Python
- tinytag
- openpyxl
- Microsoft Excel (or any other tool that can read the produced `music_inconsistencies.xlsx`)

to solve your "Album Artist inconsistency"?

What exactly do we have to do in Excel?

---

<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: [December 20, 2024, 11:17am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/9 "2024-12-20T11:17:59Z")

</div>

Perhaps the approach to check the path and the ALBUMARTIST is a little easier:  
`"$ifgreater($strstr($lower(%_folderpath%),$lower(%albumartist%)),0,1,0)" IS "0"`

---

<div class="post-metadata">

### Author: ![Fisher](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fisher/32/18709_2.png) [@Fisher](https://community.mp3tag.de/u/Fisher)
#### Post date: [December 20, 2024, 11:19am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/10 "2024-12-20T11:19:01Z")

</div>

This script finds songs in the same album that have different album artists and puts their info (including the file path) into an Excel file. Then you can see which songs need fixing and use mp3tag to change their tags.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 20, 2024, 11:21am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/11 "2024-12-20T11:21:37Z")

</div>

Thank you for this info.

If you want to go this route, I would suggest to create a [\*.m3u playlist](https://en.wikipedia.org/wiki/M3U#Examples) with the same filepath (not an Excel sheet).  
This way you can load this \*.m3u directly into Mp3tag and manipulate your tracks accordingly.

---

<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: [December 20, 2024, 11:23am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/12 "2024-12-20T11:23:31Z")

</div>

An export script without the need to get a python environment would also require a smaller effort.

---

<div class="post-metadata">

### Author: ![Fisher](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fisher/32/18709_2.png) [@Fisher](https://community.mp3tag.de/u/Fisher)
#### Post date: [December 20, 2024, 11:41am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/14 "2024-12-20T11:41:05Z")

</div>

my exe file is too big (7.7MB), which exceeds this website's size limit（3MB）.

---

<div class="post-metadata">

### Author: ![Fisher](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fisher/32/18709_2.png) [@Fisher](https://community.mp3tag.de/u/Fisher)
#### Post date: [December 20, 2024, 11:42am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/15 "2024-12-20T11:42:59Z")

</div>

Thank you, this ideais awesome 😍. I've made a new Python script, it makes m3u playlists instead of those Excel things.  
[python code - Check Album Artist Inconsistency.zip](https://community.mp3tag.de/uploads/short-url/Aft7NIyTeJGCttxck94PphzXmQe.zip) (2.1 KB)

## info

This tool can scan your music library and identify discrepancies in **album artist** information within the same album. It processes various audio file formats, extracts their metadata, and generates a `.m3u` playlist file containing the file paths of songs with such inconsistencies.

It needs a **python environment** to run.

---

<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: [January 19, 2025, 11:43am UTC](https://community.mp3tag.de/t/how-to-filtering-tracks-with-same-album-name-but-different-album-artist/66899/16 "2025-01-19T11:43:10Z")

</div>

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