Respect autoplay playlists setting (#2429)

This commit is contained in:
Preston 2022-07-31 15:37:47 -04:00 committed by GitHub
parent 4abcb7df15
commit 1ec55aff16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -129,6 +129,9 @@ export default Vue.extend({
playNextVideo: function () {
return this.$store.getters.getPlayNextVideo
},
autoplayPlaylists: function () {
return this.$store.getters.getAutoplayPlaylists
},
hideRecommendedVideos: function () {
return this.$store.getters.getHideRecommendedVideos
},
@ -915,7 +918,7 @@ export default Vue.extend({
},
handleVideoEnded: function () {
if (!this.watchingPlaylist && !this.playNextVideo) {
if ((!this.watchingPlaylist || !this.autoplayPlaylists) && !this.playNextVideo) {
return
}