I'm trying to set the background of my ELPlaylist as an artist picture that I store only in the root folder of each artist, not under each album, so the path to it is usually (%path%)\..\artist.* . But sometimes I need to go a level higher, when an album I'm currently playing is divided into multiple CDs, where each of them have a separate folder. And sometimes it's in the same level as the song, if it does not belong to any album.
To set an artist picture, this code is being used by default:
$set_ps_global(do.artist.pic, $directory_path(%path%)\artist.*)
I've been going through the list of functions but cannot find a single one that would work in my case. What I tried was to check for the file size- if it's greater than 0, or a certain small number, it picks the picture. Since there is probably no way to make a 4-way elseif-like statement, I thought of putting several of those checks under each other, like this (except I have no idea how to get the %filesize% from that selected artist file):
$set_ps_global(do.artist.pic,$ifgreater($directory_path(%path%)\..\artist.*,0,$directory_path(%path%)\..\artist.*))
$set_ps_global(do.artist.pic,$ifgreater($directory_path(%path%)\..\..\artist.*,0,$directory_path(%path%)\..\..\artist.*))
Any idea about a solution that might work here? And how to check for if a certain file exists?