Album name included in path

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.

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

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

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

That works, many thanks again.

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

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.

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

1 Like

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