diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-10 10:11:28 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-01-28 11:35:26 +0100 |
commit | b764380ac23f4e9d4677d08acdc3474c2931a16d (patch) | |
tree | 0d2c440ed8b56c35e47f2274586a11da63852086 /shared/models/redundancy/videos-redundancy.model.ts | |
parent | 3ae0bbd23c6f1b2790975328d8eae6a8317c223d (diff) | |
download | PeerTube-b764380ac23f4e9d4677d08acdc3474c2931a16d.tar.gz PeerTube-b764380ac23f4e9d4677d08acdc3474c2931a16d.tar.zst PeerTube-b764380ac23f4e9d4677d08acdc3474c2931a16d.zip |
Add ability to list redundancies
Diffstat (limited to 'shared/models/redundancy/videos-redundancy.model.ts')
-rw-r--r-- | shared/models/redundancy/videos-redundancy.model.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/shared/models/redundancy/videos-redundancy.model.ts b/shared/models/redundancy/videos-redundancy.model.ts deleted file mode 100644 index a8c2743c1..000000000 --- a/shared/models/redundancy/videos-redundancy.model.ts +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added' | ||
2 | |||
3 | export type MostViewsRedundancyStrategy = { | ||
4 | strategy: 'most-views' | ||
5 | size: number | ||
6 | minLifetime: number | ||
7 | } | ||
8 | |||
9 | export type TrendingRedundancyStrategy = { | ||
10 | strategy: 'trending' | ||
11 | size: number | ||
12 | minLifetime: number | ||
13 | } | ||
14 | |||
15 | export type RecentlyAddedStrategy = { | ||
16 | strategy: 'recently-added' | ||
17 | size: number | ||
18 | minViews: number | ||
19 | minLifetime: number | ||
20 | } | ||
21 | |||
22 | export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy | ||