From e5565833f62b97f62ea75eba5b479963ae78b873 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 24 Sep 2018 13:07:33 +0200 Subject: Improve redundancy: add 'min_lifetime' configuration --- shared/models/redundancy/videos-redundancy.model.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared/models') 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 export type MostViewsRedundancyStrategy = { strategy: 'most-views' size: number + minLifetime: number } export type TrendingRedundancyStrategy = { strategy: 'trending' size: number + minLifetime: number } export type RecentlyAddedStrategy = { strategy: 'recently-added' size: number minViews: number + minLifetime: number } export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy -- cgit v1.2.3