# filter for mp3’s that have more than one album name in the same folder?

**URL:** https://community.mp3tag.de/t/filter-for-mp3-s-that-have-more-than-one-album-name-in-the-same-folder/12962
**Category:** Support
**Created:** [January 19, 2012, 10:17am UTC](https://community.mp3tag.de/t/filter-for-mp3-s-that-have-more-than-one-album-name-in-the-same-folder/12962 "2012-01-19T10:17:57Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [January 19, 2012, 6:24pm UTC](https://community.mp3tag.de/t/filter-for-mp3-s-that-have-more-than-one-album-name-in-the-same-folder/12962/4 "2012-01-19T18:24:13Z")

</div>

> [@bobbydriver](#):
>
> Slightly obscure question I know but is there anyway I can script or filter for mp3’s that have more than one album name in the same folder? ...

Maybe this export script can help ...

$filename($getEnv('USERPROFILE')'\Desktop\AlbumDiff.txt',UTF-8)  
$loop(%\_folderpath%,1)$loop(%ALBUM%,1)%\_folderpath%' === '%ALBUM%  
$loopend()$loopend()

DD.20120119.2025.CET

Possibly this report is a little bit more comfortable to read ...

**1: $filename($getEnv('USERPROFILE')'\Desktop\AlbumDiff.txt',UTF-8)** 

**2: $loop(0)$loop(%\_folderpath%,1)$puts(MaxWidth1,$ifgreater($len(%\_folderpath%),$get(MaxWidth1),$len(%\_folderpath%),$get(MaxWidth1)))$loopend()  
3: $loop(%\_folderpath%,1)$loop(%ALBUM%,1)$left(%\_folderpath%$repeat($char(32),$get(MaxWidth1)),$get(MaxWidth1))' ==\> '%ALBUM%  
4: $loopend()$loopend()$repeat('=',$get(MaxWidth1))$loopend()  
5: $loop(0)$loop(%ALBUM%,1)$puts(MaxWidth2,$ifgreater($len(%ALBUM%),$get(MaxWidth2),$len(%ALBUM%),$get(MaxWidth2)))$loopend()  
6: $loop(%ALBUM%,1)$loop(%\_folderpath%,1)$left(%ALBUM%$repeat($char(32),$get(MaxWidth2)),$get(MaxWidth2))' ==\> '%\_folderpath%  
7: $loopend()$loopend()$repeat('=',$get(MaxWidth2))$loopend()**

 

DD.20110120.0640.CET

---

_[View the full topic](https://community.mp3tag.de/t/filter-for-mp3-s-that-have-more-than-one-album-name-in-the-same-folder/12962)._
