diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 4a09161f14..00afd9c0d5 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -212,7 +212,11 @@
- +
@@ -424,7 +428,7 @@ export default { }, activated() { this.active = true; - this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", false); + this.selectedAutoPlay = this.getPreferenceNumber("autoplay", 1); this.showComments = !this.getPreferenceBoolean("minimizeComments", false); this.showDesc = !this.getPreferenceBoolean("minimizeDescription", true); this.showRecs = !this.getPreferenceBoolean("minimizeRecommendations", false); @@ -623,8 +627,8 @@ export default { onVideoEnded() { if ( !this.selectedAutoLoop && - this.selectedAutoPlay && - (this.playlist?.relatedStreams?.length > 0 || this.video.relatedStreams.length > 0) + ((this.selectedAutoPlay >= 1 && this.playlist?.relatedStreams?.length > this.index) || + (this.selectedAutoPlay >= 2 && this.video.relatedStreams.length > 0)) ) { this.showToast(); }