Public Access
feat(library): add a speedrun mood from speedrun.com
The picker takes mood=SPEEDRUN for backlog games with a speedrun.com game that has at least one verified run. The game detail returns the link as speedrunUrl. speedrun.com has no Steam or IGDB link, so games are matched by name and, when IGDB knows it, by release year (one year off at most). One queue serves all users at 1 request per second. Results are kept 30 days in game_speedrun.
This commit is contained in:
1 parent
3224257325
commit
393cdddf06
27 files changed
+1179
-22
No files matched your search
@@ -50,12 +50,17 @@ app:
|
||||
client-secret: ${IGDB_CLIENT_SECRET:}
|
||||
base-url: https://api.igdb.com/v4
|
||||
token-base-url: https://id.twitch.tv
|
||||
speedrun:
|
||||
# No key needed. false stops every call to speedrun.com.
|
||||
enabled: true
|
||||
base-url: https://www.speedrun.com/api/v1
|
||||
library:
|
||||
sync-ttl-hours: 24
|
||||
force-sync-cooldown-seconds: 60
|
||||
running-stale-minutes: 5
|
||||
achievement-ttl-hours: 1
|
||||
schema-ttl-days: 30
|
||||
speedrun-ttl-days: 30
|
||||
|
||||
resilience4j:
|
||||
retry:
|
||||
@@ -75,6 +80,11 @@ resilience4j:
|
||||
limit-for-period: 2
|
||||
limit-refresh-period: 1s
|
||||
timeout-duration: 5s
|
||||
speedrunApi:
|
||||
# speedrun.com allows 100 requests/min per IP.
|
||||
limit-for-period: 1
|
||||
limit-refresh-period: 1s
|
||||
timeout-duration: 30s
|
||||
igdbApi:
|
||||
# IGDB allows 4 requests/s. Taken per HTTP request.
|
||||
limit-for-period: 4
|
||||
|
||||
Reference in new issue
Block a user