fix: add image fallback chain for missing game covers in search

This commit is contained in:
2026-04-28 22:30:19 +08:00
parent 59e3ca338b
commit ab27ba948f
2 changed files with 20 additions and 6 deletions
+2
View File
@@ -269,6 +269,7 @@ export const searchUnifiedRoutes = new Elysia({ prefix: "/search" }).get(
appId: g.steamAppId,
title: g.title,
image: g.capsuleImage || g.headerImage,
tinyImage: g.capsuleImage || g.headerImage || null,
developer: g.developer,
publisher: g.publisher,
description: g.description,
@@ -299,6 +300,7 @@ export const searchUnifiedRoutes = new Elysia({ prefix: "/search" }).get(
appId: item.id,
title: item.name,
image: `https://cdn.akamai.steamstatic.com/steam/apps/${item.id}/library_600x900.jpg`,
tinyImage: item.tiny_image || null,
developer: null,
publisher: null,
description: null,