1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Autoplay next recommended video (#2137)

* Start working on autoplay of next video

* Ignore changes made by gitpod

* Apply changes from PR#1370

* Correct the spelling of recommendations

* Fix linting errors

* Move boolean check to existing onEnded handler

* Pick a random video until the recommendations are improved

* Add simple tests for autoPlayNextVideo

* Fix lint

...again
This commit is contained in:
LoveIsGrief 2019-09-24 08:48:01 +02:00 committed by Chocobozzz
parent 32d7f2b754
commit 6aa5414813
14 changed files with 74 additions and 2 deletions

View file

@ -65,6 +65,10 @@ function isUserBlockedValid (value: any) {
return isBooleanValid(value)
}
function isUserAutoPlayNextVideoValid (value: any) {
return isBooleanValid(value)
}
function isNoInstanceConfigWarningModal (value: any) {
return isBooleanValid(value)
}
@ -106,6 +110,7 @@ export {
isUserNSFWPolicyValid,
isUserWebTorrentEnabledValid,
isUserAutoPlayVideoValid,
isUserAutoPlayNextVideoValid,
isUserDisplayNameValid,
isUserDescriptionValid,
isNoInstanceConfigWarningModal,