# Album name included in path

**URL:** <https://community.mp3tag.de/t/album-name-included-in-path/60059>\
**Category:** Support\
**Created:** [February 14, 2023, 10:28am UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059 "2023-02-14T10:28:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![massimolinari](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@massimolinari](https://community.mp3tag.de/u/massimolinari)\
**Post date:** [February 14, 2023, 10:28am UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/1 "2023-02-14T10:28:57Z")

</div>

Hi, my mp3 files are usually contained in this filesystem structure: path/artist/album.  
However, when the album is not meaningful to me (say I only have a few songs from the entire album) the album is removed from the path and the songs are loosely contained inside a folder bearing just the name of the Artist: path/artist/  
For these songs I would like to have the album information removed.  
So how to I find such songs? My idea was to filter as follows:  
NOT %\_path% HAS %Album%  
because I want to find songs for which the album tag is present but does not coincide with the path. However the filter does not work. I also tried with %\_directory% but still no luck. Any idea? 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 14, 2023, 10:37am UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/2 "2023-02-14T10:37:39Z")

</div>

> [@massimolinari](#):
>
> NOT %\_path% HAS %Album%

This is no valid filter syntax.  
Try  
`"$ifgreater($strstr(%_path%,%album%),0,yes,no)" IS no`

---

<div class="post-metadata">

**Author:** ![massimolinari](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@massimolinari](https://community.mp3tag.de/u/massimolinari)\
**Post date:** [February 14, 2023, 11:01am UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/3 "2023-02-14T11:01:14Z")

</div>

That's great, thanks. Is there any way to make that case-insensitive?

---

<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 14, 2023, 11:05am UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/4 "2023-02-14T11:05:03Z")

</div>

Try:  
`"$ifgreater($strstr($lower(%_path%),$lower(%album%)),0,yes,no)" IS no`

---

<div class="post-metadata">

**Author:** ![massimolinari](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@massimolinari](https://community.mp3tag.de/u/massimolinari)\
**Post date:** [February 14, 2023, 11:31am UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/5 "2023-02-14T11:31:42Z")

</div>

> [@ohrenkino](#):
>
> `"$ifgreater($strstr($lower(%_path%),$lower(%album%)),0,yes,no)" IS no`

That works, many thanks again.

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [February 14, 2023, 11:53am UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/6 "2023-02-14T11:53:28Z")

</div>

Use caution with this, in cases where the album name is also the artist name (so called self titled albums).

---

<div class="post-metadata">

**Author:** ![massimolinari](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@massimolinari](https://community.mp3tag.de/u/massimolinari)\
**Post date:** [February 14, 2023, 12:16pm UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/7 "2023-02-14T12:16:14Z")

</div>

Right, there is that exception. Altough I suppose since the query does not return the self titles albums, one would simply fail to delete the album tags only in those specific cases.

---

<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 14, 2023, 2:17pm UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/8 "2023-02-14T14:17:47Z")

</div>

> [@massimolinari](#):
>
> the query does not return the self titles albums

You could append the filter to:  
`"$ifgreater($strstr($lower(%_path%),$lower(%album%)),0,yes,no)" IS no AND "$if($eql(%artist%,%album%),1,0)" IS 0`

---

<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:** [March 16, 2023, 2:18pm UTC](https://community.mp3tag.de/t/album-name-included-in-path/60059/9 "2023-03-16T14:18:02Z")

</div>

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