aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/redundancy
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-24 13:07:33 +0200
committerChocobozzz <me@florianbigard.com>2018-09-24 13:38:39 +0200
commite5565833f62b97f62ea75eba5b479963ae78b873 (patch)
tree835793ce464f9666b0ceae79f3d278cc4e007b32 /shared/models/redundancy
parentd1a63fc7ac58a1db00d8ca4f43aadba02eb9b084 (diff)
downloadPeerTube-e5565833f62b97f62ea75eba5b479963ae78b873.tar.gz
PeerTube-e5565833f62b97f62ea75eba5b479963ae78b873.tar.zst
PeerTube-e5565833f62b97f62ea75eba5b479963ae78b873.zip
Improve redundancy: add 'min_lifetime' configuration
Diffstat (limited to 'shared/models/redundancy')
-rw-r--r--shared/models/redundancy/videos-redundancy.model.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/models/redundancy/videos-redundancy.model.ts b/shared/models/redundancy/videos-redundancy.model.ts
index 436394c1e..a8c2743c1 100644
--- a/shared/models/redundancy/videos-redundancy.model.ts
+++ b/shared/models/redundancy/videos-redundancy.model.ts
@@ -3,17 +3,20 @@ export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-adde
3export type MostViewsRedundancyStrategy = { 3export type MostViewsRedundancyStrategy = {
4 strategy: 'most-views' 4 strategy: 'most-views'
5 size: number 5 size: number
6 minLifetime: number
6} 7}
7 8
8export type TrendingRedundancyStrategy = { 9export type TrendingRedundancyStrategy = {
9 strategy: 'trending' 10 strategy: 'trending'
10 size: number 11 size: number
12 minLifetime: number
11} 13}
12 14
13export type RecentlyAddedStrategy = { 15export type RecentlyAddedStrategy = {
14 strategy: 'recently-added' 16 strategy: 'recently-added'
15 size: number 17 size: number
16 minViews: number 18 minViews: number
19 minLifetime: number
17} 20}
18 21
19export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy 22export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy