fix: update uguu cache TTL to 2.5 hours and reorder config options
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ func headCoverArt(url string) string {
|
|||||||
const (
|
const (
|
||||||
caaCacheTTLHit int64 = 24 * 60 * 60 // 24 hours for resolved CAA artwork
|
caaCacheTTLHit int64 = 24 * 60 * 60 // 24 hours for resolved CAA artwork
|
||||||
caaCacheTTLMiss int64 = 4 * 60 * 60 // 4 hours for CAA misses
|
caaCacheTTLMiss int64 = 4 * 60 * 60 // 4 hours for CAA misses
|
||||||
uguuCacheTTL int64 = 9000 // ~2.5 hours for uguu.se uploads
|
uguuCacheTTL int64 = 150 * 60 // 2.5 hours for uguu.se uploads
|
||||||
)
|
)
|
||||||
|
|
||||||
// getImageViaCoverArt checks the Cover Art Archive for album artwork.
|
// getImageViaCoverArt checks the Cover Art Archive for album artwork.
|
||||||
|
|||||||
+5
-5
@@ -61,17 +61,17 @@
|
|||||||
],
|
],
|
||||||
"default": "Default"
|
"default": "Default"
|
||||||
},
|
},
|
||||||
"uguuenabled": {
|
|
||||||
"type": "boolean",
|
|
||||||
"title": "Upload artwork to uguu.se (enable if Navidrome is not publicly accessible)",
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
"caaenabled": {
|
"caaenabled": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "Use artwork from Cover Art Archive (for MusicBrainz-tagged music)",
|
"title": "Use artwork from Cover Art Archive (for MusicBrainz-tagged music)",
|
||||||
"description": "When enabled, attempts to fetch album artwork from the Cover Art Archive using MusicBrainz IDs. Takes priority over other artwork methods.",
|
"description": "When enabled, attempts to fetch album artwork from the Cover Art Archive using MusicBrainz IDs. Takes priority over other artwork methods.",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
|
"uguuenabled": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "Upload artwork to uguu.se (enable if Navidrome is not publicly accessible)",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"spotifylinks": {
|
"spotifylinks": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "Enable Spotify link-through",
|
"title": "Enable Spotify link-through",
|
||||||
|
|||||||
Reference in New Issue
Block a user