1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add trending videos strategy

This commit is contained in:
Chocobozzz 2018-09-14 09:57:21 +02:00
parent 6f0c46be8c
commit b36f41ca09
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 254 additions and 142 deletions

View file

@ -41,7 +41,7 @@ function checkConfig () {
const redundancyVideos = config.get<VideosRedundancy[]>('redundancy.videos')
if (isArray(redundancyVideos)) {
for (const r of redundancyVideos) {
if ([ 'most-views' ].indexOf(r.strategy) === -1) {
if ([ 'most-views', 'trending' ].indexOf(r.strategy) === -1) {
return 'Redundancy video entries should have "most-views" strategy instead of ' + r.strategy
}
}