diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-24 13:07:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-24 13:38:39 +0200 |
commit | e5565833f62b97f62ea75eba5b479963ae78b873 (patch) | |
tree | 835793ce464f9666b0ceae79f3d278cc4e007b32 /shared/models/redundancy | |
parent | d1a63fc7ac58a1db00d8ca4f43aadba02eb9b084 (diff) | |
download | PeerTube-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.ts | 3 |
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 | |||
3 | export type MostViewsRedundancyStrategy = { | 3 | export type MostViewsRedundancyStrategy = { |
4 | strategy: 'most-views' | 4 | strategy: 'most-views' |
5 | size: number | 5 | size: number |
6 | minLifetime: number | ||
6 | } | 7 | } |
7 | 8 | ||
8 | export type TrendingRedundancyStrategy = { | 9 | export type TrendingRedundancyStrategy = { |
9 | strategy: 'trending' | 10 | strategy: 'trending' |
10 | size: number | 11 | size: number |
12 | minLifetime: number | ||
11 | } | 13 | } |
12 | 14 | ||
13 | export type RecentlyAddedStrategy = { | 15 | export 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 | ||
19 | export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy | 22 | export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy |