mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
Fix cache condition (#767)
This commit is contained in:
parent
eba9e07d32
commit
0879c97ff4
|
@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Cache files are now correctly created
|
||||||
|
|
||||||
## [2.1.2] - 2022-08-04
|
## [2.1.2] - 2022-08-04
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -457,7 +457,7 @@ export default class {
|
||||||
|
|
||||||
// Don't cache livestreams or long videos
|
// Don't cache livestreams or long videos
|
||||||
const MAX_CACHE_LENGTH_SECONDS = 30 * 60; // 30 minutes
|
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(...[
|
ffmpegInputOptions.push(...[
|
||||||
'-reconnect',
|
'-reconnect',
|
||||||
|
|
Loading…
Reference in a new issue