diff options
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 |