sonic2kk / steamtinkerlaunch

Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs
GNU General Public License v3.0
2.11k stars 71 forks source link

SteamGridDB: Add --search-name option to commandlineGetSteamGridDBArtwork #938

Closed sonic2kk closed 11 months ago

sonic2kk commented 11 months ago

Another piece for #933.

This PR adds a --search-name flag to the commandlineGetSteamGridDBArtwork function. This uses the standalone function to search SteamGridDB for a Game ID using the Game Name, added in #937.

When --search-name is passed, since we'll be using the SteamGridDB Game ID, the user must provide the AppID for the game to use in the filename with --filename-appid. Otherwise we won't be able to save the file with the correct AppID.

Also when this flag is passed, we force use the SteamGridDB game endpoint, so the user doesn't have to pass --nonsteam (it's fine if they do, it will simply be ignored).

Tested this with "Doki Doki Literature Club" and it worked no problem.

TODO:

sonic2kk commented 11 months ago

SteamGridDB wiki page has been updated.