Skip to content

Commit

Permalink
howlongtobeat: Update search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroman committed Dec 17, 2024
1 parent a576acd commit 0a75846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/howlongtobeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ def search(query, parent: Async::Task.current)
}
headers = {
'referer' => 'https://howlongtobeat.com',
'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0'
'user-agent' => 'Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0'
}

parent.async do
response = @http.post('https://howlongtobeat.com/api/search/7b0f03b254cc3099', json: payload, headers:)
response = @http.post('https://howlongtobeat.com/api/find/7622125a648b9bb7', json: payload, headers:)
next unless response.status == 200

data = response.json
Expand Down

0 comments on commit 0a75846

Please sign in to comment.