mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Fix retry in IgdbPlugin
This commit is contained in:
@@ -165,8 +165,8 @@ class IgdbPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin(wrapper) {
|
||||
val randomInterval = (1..5).random().toLong()
|
||||
log.warn("IGDB rate limit exceeded, retrying in $randomInterval seconds...")
|
||||
TimeUnit.SECONDS.sleep(randomInterval)
|
||||
|
||||
queryIgdbGames(query)
|
||||
|
||||
return queryIgdbGames(query)
|
||||
}
|
||||
|
||||
log.error("Request to IGDB API failed with HTTP ${e.statusCode}")
|
||||
|
||||
Reference in New Issue
Block a user