allow custom song background images (#2632)
* allow custom song background images * allow custom missing album art
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user