-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update search interaction with HLTB API to current version (#25)
This commit fixes search by doing this: - Fixing wrong search code being parsed. Because HLTB changed their script for getting code from `"api/search".concat("code")` to `"api/search".concat("co").concat("de")` proxy only parsed first part ("co") of the "code" I think in the future, it will be problem again because HLTB did it for making scrapping harder. - Updated query schema for current HLTB search version HLTB added "useCache", "lists" fields to the root of schema and "subgenre" field to "root/games/gameplay" - Updated headers By using real API search headers and removing ones that don't affect search success, I left with change "Authority" to "Host" and adding "Accept" headet. Also I updated user-agent
- Loading branch information
Showing
3 changed files
with
50 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters