Feature/local dash (#166)
* Generate dash locally * Refactor xml gen * Lint fix * Add feature flag * Multi language audio tracks * Unused var * Set video expiration to 5 hours --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
fc3629de09
commit
fc161ffe4c
10 files changed
+444
-13
No files matched your search
@@ -99,7 +99,11 @@ namespace Invidious
|
||||
request = HttpClient.Get(url)
|
||||
request.QueryParams(m.DefaultQueryParams())
|
||||
request.QueryParam("q", q)
|
||||
request.CacheSeconds(60 * 60 * 6)' 6 hours
|
||||
' 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.
|
||||
' https://github.com/iv-org/invidious/blob/069e91d2a609b1df94bdfbb693335969b2a281d8/src/invidious/videos.cr#L349
|
||||
request.CacheSeconds(60 * 60 * 5)
|
||||
|
||||
request.Cancellation(cancellation)
|
||||
|
||||
|
||||
Reference in new issue
Block a user