From 22dd5baf23a7d793de2a966973eed7e88d111305 Mon Sep 17 00:00:00 2001 From: Preston Date: Sun, 31 Jul 2022 15:37:34 -0400 Subject: [PATCH] Respect autoplay playlists setting (#2430) --- src/renderer/views/Watch/Watch.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 54114546..e4f86aa6 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -132,6 +132,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 }, @@ -929,7 +932,7 @@ export default Vue.extend({ }, handleVideoEnded: function () { - if (!this.watchingPlaylist && !this.playNextVideo) { + if ((!this.watchingPlaylist || !this.autoplayPlaylists) && !this.playNextVideo) { return }