[skip ci] reduce player cache duration

This commit is contained in:
Brahim Hadriche committed 2025-06-19 09:24:39 -04:00
1 parent 9d7b792f42
commit e3c0c026f9
1 file changed
+2 -4
@@ -137,11 +137,9 @@ namespace Invidious
end function
function GetVideoMetadata(videoId as string, options = invalid as object) as object
' 5 hours cache. Videos should expire in 6 hours, but since we don't
' have the exact expiration time, we'll use 5 hours. Invidious currently
' Does a fresh fetch if the cache is older than 10 minutes.
' 10 minutes cache.
' https://github.com/iv-org/invidious/blob/069e91d2a609b1df94bdfbb693335969b2a281d8/src/invidious/videos.cr#L349
cacheSeconds = OptionUtils.GetOrDefault(options, "cacheSeconds", 18000) ' 5 hours
cacheSeconds = OptionUtils.GetOrDefault(options, "cacheSeconds", 600) ' 10 minutes
cancellation = OptionUtils.Get(options, "cancellation")
tryCount = OptionUtils.GetOrDefault(options, "tryCount", 2)