SteamGridDB: Add --search-name option to commandlineGetSteamGridDBArtwork #938
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Another piece for #933.
This PR adds a
--search-name
flag to thecommandlineGetSteamGridDBArtwork
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: