allow custom song background images (#2632)

* allow custom song background images

* allow custom missing album art
This commit is contained in:
Jason Dove
2025-11-11 10:40:45 -06:00
committed by GitHub
parent 3984bc7dbe
commit 1e0bba0dc6
15 changed files with 60 additions and 60 deletions
@@ -194,4 +194,10 @@ public class LocalFileSystem(IClient client, ILogger<LocalFileSystem> logger) :
await using var stream = File.OpenRead(path);
return await md5.ComputeHashAsync(stream);
}
public string GetCustomOrDefaultFile(string folder, string file)
{
string path = Path.Combine(folder, file);
return FileExists(path) ? path : Path.Combine(folder, $"_{file}");
}
}