mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 04:15:36 -04:00
[PR #257] [MERGED] improve igdb metadata fetching #274
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Drop-OSS/drop/pull/257
Author: @laylafogiel-hash
Created: 10/6/2025
Status: ✅ Merged
Merged: 10/23/2025
Merged by: @DecDuck
Base:
develop← Head:improve-igdb📝 Commits (3)
2ef4efdimprove igdb metadata fetching10e01c9IDGB -> IGDB856c6e3use the longer text between storyline and description for description📊 Changes
1 file changed (+48 additions, -27 deletions)
View changed files
📝
server/internal/metadata/igdb.ts(+48 -27)📄 Description
Make sure to get images with reasonable resolution. By default the url igdb returns is in "t_thumb" size, an image of size 90x90, which is good only for the icon, but bad for pretty much else. This commit will make sure covers will be of size "t_cover_big", artworks of 1080p height (i.e. "t_1080p") and logos will have their original size ("t_original"). Maybe "t_logo_med" is more appropriate?
Fetch screenshots as well.
Use a separate image for icon and for cover. icon needs to be a square, and can be of low resolution, so the "t_thmb" size is more appropriate for him.
If there is a storyline for a game use it as a short description.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.