diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-20 16:24:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 16:24:31 +0200 |
commit | 0491173a61aed66205c017e0d7e0503ea316c144 (patch) | |
tree | ce6621597505f9518cfdf0981977d097c63f9fad /shared/models/redundancy/videos-redundancy.model.ts | |
parent | 8704acf49efc770d73bf07c10468ed8c74d28a83 (diff) | |
parent | 6247b2057b792cea155a1abd9788c363ae7d2cc2 (diff) | |
download | PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.gz PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.zst PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.zip |
Merge branch 'develop' into cli-wrapper
Diffstat (limited to 'shared/models/redundancy/videos-redundancy.model.ts')
-rw-r--r-- | shared/models/redundancy/videos-redundancy.model.ts | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/shared/models/redundancy/videos-redundancy.model.ts b/shared/models/redundancy/videos-redundancy.model.ts index eb84964e0..436394c1e 100644 --- a/shared/models/redundancy/videos-redundancy.model.ts +++ b/shared/models/redundancy/videos-redundancy.model.ts | |||
@@ -1,6 +1,19 @@ | |||
1 | export type VideoRedundancyStrategy = 'most-views' | 1 | export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added' |
2 | 2 | ||
3 | export interface VideosRedundancy { | 3 | export type MostViewsRedundancyStrategy = { |
4 | strategy: VideoRedundancyStrategy | 4 | strategy: 'most-views' |
5 | size: number | 5 | size: number |
6 | } | 6 | } |
7 | |||
8 | export type TrendingRedundancyStrategy = { | ||
9 | strategy: 'trending' | ||
10 | size: number | ||
11 | } | ||
12 | |||
13 | export type RecentlyAddedStrategy = { | ||
14 | strategy: 'recently-added' | ||
15 | size: number | ||
16 | minViews: number | ||
17 | } | ||
18 | |||
19 | export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy | ||