]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/redundancy/videos-redundancy-strategy.model.ts
Correctly fix octet stream fallback for video ext
[github/Chocobozzz/PeerTube.git] / shared / models / redundancy / videos-redundancy-strategy.model.ts
1 export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
2 export type VideoRedundancyStrategyWithManual = VideoRedundancyStrategy | 'manual'
3
4 export type MostViewsRedundancyStrategy = {
5 strategy: 'most-views'
6 size: number
7 minLifetime: number
8 }
9
10 export type TrendingRedundancyStrategy = {
11 strategy: 'trending'
12 size: number
13 minLifetime: number
14 }
15
16 export type RecentlyAddedStrategy = {
17 strategy: 'recently-added'
18 size: number
19 minViews: number
20 minLifetime: number
21 }
22
23 export type VideosRedundancyStrategy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy