aboutsummaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2022-08-08 20:42:55 -0500
committerGitHub <[email protected]>2022-08-08 20:42:55 -0500
commit0879c97ff47bdf1d4012178a623f49ea5230c3ae (patch)
treed3827ae64238b198e514a2bca58b475639ed93c1 /src/services
parenteba9e07d32a1b0a70342f6ba9621db64864545cd (diff)
downloadmuse-0879c97ff47bdf1d4012178a623f49ea5230c3ae.tar.xz
muse-0879c97ff47bdf1d4012178a623f49ea5230c3ae.zip
Fix cache condition (#767)
Diffstat (limited to 'src/services')
-rw-r--r--src/services/player.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/player.ts b/src/services/player.ts
index 0af6fec..78f72b2 100644
--- a/src/services/player.ts
+++ b/src/services/player.ts
@@ -457,7 +457,7 @@ export default class {
// Don't cache livestreams or long videos
const MAX_CACHE_LENGTH_SECONDS = 30 * 60; // 30 minutes
- shouldCacheVideo = !info.player_response.videoDetails.isLiveContent && parseInt(info.videoDetails.lengthSeconds, 10) < MAX_CACHE_LENGTH_SECONDS && !options.seek && !options.to;
+ shouldCacheVideo = !info.player_response.videoDetails.isLiveContent && parseInt(info.videoDetails.lengthSeconds, 10) < MAX_CACHE_LENGTH_SECONDS && !options.seek;
ffmpegInputOptions.push(...[
'-reconnect',