Add local light icons
All checks were successful
Build and Push Docker Image / prepare (push) Successful in 1m9s

This commit is contained in:
Florian Hoss 2025-01-31 13:22:06 +01:00
parent 638289b8a4
commit 324c4be452
Signed by: flohoss
GPG key ID: 3F35C7F6E6F66F6B

View file

@ -142,7 +142,7 @@ func handleLocalIcons(title, ext string) (string, string) {
if os.IsNotExist(err) {
return "", ""
}
filePathLight := strings.Replace(title, ext, "-light"+ext, 1)
filePathLight := strings.Replace(filePath, ext, "-light"+ext, 1)
_, err = os.Stat(filePathLight)
if os.IsNotExist(err) {
return "/" + strings.TrimPrefix(filePath, storageFolder), ""