Skip to content

Commit

Permalink
Fix howlongtobeat search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroman committed Nov 5, 2024
1 parent cbf72fb commit 189d87b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/howlongtobeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ def search(query, parent: Async::Task.current)
}

parent.async do
response = @http.post('https://howlongtobeat.com/api/search/5683ebd079f1c360', json: payload, headers:)
return unless response.status == 200
response = @http.post('https://howlongtobeat.com/api/search/5356b6994c0cc3eb', json: payload, headers:)
next unless response.status == 200

data = response.json
return unless data && data['count'].positive?
next unless data && data['count'].positive?

data['data']
end
Expand Down

0 comments on commit 189d87b

Please sign in to comment.