diff --git a/lib/routes/steam/search.ts b/lib/routes/steam/search.ts index ed23b802877b34..8e6e13b680f37b 100644 --- a/lib/routes/steam/search.ts +++ b/lib/routes/steam/search.ts @@ -34,6 +34,8 @@ async function handler(ctx) { const isBundle = !!$el.attr('data-ds-bundle-data'); const isDiscounted = $el.find('.discount_original_price').length > 0; const hasReview = $el.find('.search_review_summary').length > 0; + const appID : string | undefined = $el.attr('data-ds-appid'); + let desc = ''; if (isBundle) { const bundle = JSON.parse($el.attr('data-ds-bundle-data')); @@ -57,6 +59,11 @@ async function handler(ctx) { title: $el.find('span.title').text(), link: $el.attr('href'), description: desc.replaceAll('\n', '
'), + media: { + thumbnail: { + url: `https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/${appID}/header.jpg`, + }, + }, }; }) .filter((it) => it.title),