# filter duplicates files in same directory

**URL:** https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406
**Category:** General Discussion
**Created:** [May 9, 2012, 12:29am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406 "2012-05-09T00:29:15Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![cordobaweb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/51bf81/32.png) [@cordobaweb](https://community.mp3tag.de/u/cordobaweb)
#### Post date: [May 9, 2012, 12:29am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/1 "2012-05-09T00:29:15Z")

</div>

How Can I filter files with same title tag and directory? So I will can delete duplicates

---

<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: [May 9, 2012, 3:31am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/2 "2012-05-09T03:31:45Z")

</div>

Not at all. I mean: filter for duplicates.  
MP3tag looks at one file at the time and does not know anything about the data in the predecessor or successor.  
You would have to resort to other means like sorting, the program Similiarity or even iTunes.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [May 9, 2012, 4:08am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/3 "2012-05-09T04:08:49Z")

</div>

> [@Diego Cordobaweb](#):
>
> How Can I filter files with same title tag and directory? So I will can delete duplicates

Mp3tag can filter for the same value in the same tag-field across multiple files.  
That is the main purpose of the filter.

If you want to compare the content of tag-fields per file, then the following filter expression can help ...  
**"$if($eql(%\_DIRECTORY%,%TITLE%),1,0)" IS 1**

DD.20120509.0818.CEST

---

<div class="post-metadata">

### Author: ![cordobaweb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/51bf81/32.png) [@cordobaweb](https://community.mp3tag.de/u/cordobaweb)
#### Post date: [May 10, 2012, 12:38am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/4 "2012-05-10T00:38:27Z")

</div>

> [@DetlevD](#):
>
> Mp3tag can filter for the same value in the same tag-field across multiple files.  
> That is the main purpose of the filter.
> 
> If you want to compare the content of tag-fields per file, then the following filter expression can help ...  
> **"$if($eql(%\_DIRECTORY%,%TITLE%),1,0)" IS 1**
> 
> DD.20120509.0818.CEST

Not work..It´s .compare only directory with title each mp3 ![:unsure:](https://community.mp3tag.de/uploads/default/original/1X/cfaeba84fe6704387c5b34dfdd8172bd51b6f533.gif ":unsure:")

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [May 10, 2012, 3:24am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/5 "2012-05-10T03:24:23Z")

</div>

> [@Diego Cordobaweb](#):
>
> How Can I filter files with same title tag and directory? So I will can delete duplicates

Mp3tag can filter for the same value in the same tag-field across multiple files.  
That is the main purpose of the filter.

If you want to compare the content of tag-fields per file, then the following filter expression can help ...  
**"$if($eql(%\_DIRECTORY%,%TITLE%),1,0)" IS 1**

> [@Diego Cordobaweb](#):
>
> Not work..It´s .compare only directory with title each mp3 ![:unsure:](https://community.mp3tag.de/uploads/default/original/1X/cfaeba84fe6704387c5b34dfdd8172bd51b6f533.gif ":unsure:")

Yes, that is the filter expression for what you have asked, filter files with same title tag and directory.

Hm, are there any other ways how to filter files "with same title tag and directory"?

With the same title content ...  
TITLE IS "same title value"

With the same directory name ...  
"%\_DIRECTORY%" IS "same directory name"

Combined with "OR" ...  
TITLE IS "same title value" OR "%\_DIRECTORY%" IS "same directory name"

Combined with "AND" ...  
TITLE IS "same title value" AND "%\_DIRECTORY%" IS "same directory name"

DD.20110510.0715.CEST

---

<div class="post-metadata">

### Author: ![cordobaweb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/51bf81/32.png) [@cordobaweb](https://community.mp3tag.de/u/cordobaweb)
#### Post date: [May 11, 2012, 1:20am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/6 "2012-05-11T01:20:18Z")

</div>

try the filter but it compares the title of each mp3 to the directory but not the title of other mp3 to detect duplicates within the same directory

---

<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: [May 11, 2012, 4:20am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/7 "2012-05-11T04:20:19Z")

</div>

Exactly. So it works.  
What does not work, though, but this is a fundamental feature of MP3tag, is the comparison between two files.  
See post #2 for possible alternatives

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [May 11, 2012, 5:19am UTC](https://community.mp3tag.de/t/filter-duplicates-files-in-same-directory/13406/8 "2012-05-11T05:19:48Z")

</div>

> [@Diego Cordobaweb](#):
>
> ... the title of other mp3 to detect duplicates within the same directory

> [@DetlevD](#):
>
> ... With the same title content ...  
> TITLE IS "same title value" ...

Does this not show all files with the same title in the Mp3tag list view?

Note: You have to replace the example text string "same title value" with the actual text string to search for, for example ....  
TITLE IS "The Worrying Thing"

This should display only those files with this same title name.

Remark:  
Did you ever sort the TITLE column ascending or descending in the Mp3tag list view?  
If so, then all the same title names should have been grouped together.  
And it is easy to see which files have the same content in the TITLE tag-field.

DD.20120511.0919.CEST
