mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 00:30:02 +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()
|
val randomInterval = (1..5).random().toLong()
|
||||||
log.warn("IGDB rate limit exceeded, retrying in $randomInterval seconds...")
|
log.warn("IGDB rate limit exceeded, retrying in $randomInterval seconds...")
|
||||||
TimeUnit.SECONDS.sleep(randomInterval)
|
TimeUnit.SECONDS.sleep(randomInterval)
|
||||||
|
|
||||||
queryIgdbGames(query)
|
return queryIgdbGames(query)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.error("Request to IGDB API failed with HTTP ${e.statusCode}")
|
log.error("Request to IGDB API failed with HTTP ${e.statusCode}")
|
||||||
|
|||||||
Reference in New Issue
Block a user