Fix #571:make timeout configurable and bump default to 15 sec

This commit is contained in:
Drew Weymouth
2025-03-05 07:47:52 -08:00
parent 4fa50b7381
commit ed36879cda
5 changed files with 16 additions and 11 deletions
+2 -1
View File
@@ -148,7 +148,8 @@ func StartupApp(appName, displayAppName, appVersion, appVersionTag, latestReleas
_, _ = a.ImageManager.GetCoverThumbnail(coverID)
})
if a.Config.Application.EnableLrcLib {
a.LrcLibFetcher = NewLrcLibFetcher(a.cacheDir, a.Config.Application.CustomLrcLibUrl)
timeout := time.Duration(a.Config.Application.RequestTimeoutSeconds) * time.Second
a.LrcLibFetcher = NewLrcLibFetcher(a.cacheDir, a.Config.Application.CustomLrcLibUrl, timeout)
}
a.PlaybackManager.OnPlaying(func() {