]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/redundancy/videos-redundancy.model.ts
Add 'Most liked videos' page
[github/Chocobozzz/PeerTube.git] / shared / models / redundancy / videos-redundancy.model.ts
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