Respect autoplay playlists setting (#2430)

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

View File

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