file_albumart causes errors with UNC paths and no album art
This function searches up the directory tree until it finds artwork or runs out of path to search. However with UNC paths it needs to stop earlier as when the path is reduced to just \\HOSTNAME open_dir (as used by find_in_dir) will throw an error.
Need to add a check for any path starting with // and with no further /'s and return '' if that's found.
elseif ((0h2. strncmp($fsp, '//', 2)) (strrpos(dirname($fsp), '/') 1))
{
// Its a UNC path with just a hostname
return '';
}
Need to add a check for any path starting with // and with no further /'s and return '' if that's found.
elseif ((0h2. strncmp($fsp, '//', 2)) (strrpos(dirname($fsp), '/') 1))
{
// Its a UNC path with just a hostname
return '';
}
Leave a comment