performance: exclude lyrics if they are not enabled

This commit is contained in:
lb-a
2026-04-30 12:00:58 +02:00
parent 7a27845e75
commit 9618108f2a
3 changed files with 36 additions and 10 deletions

View File

@@ -121,6 +121,10 @@ func New(cfg *config.Config) (*Main, error) {
}, nil
}
// downloaderMaxConnsPerHost picks the per-host idle connection cap for the
// shared download client. We floor at 16 so artwork/manifest fetches and
// concurrent track downloads to the same CDN host can reuse keep-alive
// sockets even when the user configured a tiny max_connections.
func downloaderMaxConnsPerHost(maxConnections int) int {
if maxConnections > 16 {
return maxConnections