From 8c6bfaafa6dd95083f65cd2a36eb9484622d33b0 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Mon, 21 Aug 2023 03:12:27 +0200 Subject: [PATCH] Fix playlist view on the watch page not reacting to playlist changes (#3897) --- .../watch-video-playlist/watch-video-playlist.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/renderer/components/watch-video-playlist/watch-video-playlist.js b/src/renderer/components/watch-video-playlist/watch-video-playlist.js index 3bc77feda..832b4f0ce 100644 --- a/src/renderer/components/watch-video-playlist/watch-video-playlist.js +++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.js @@ -129,6 +129,15 @@ export default defineComponent({ nextTick(() => this.scrollToCurrentVideo()) } }, + playlistId: function (newVal, oldVal) { + if (oldVal !== newVal) { + if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') { + this.getPlaylistInformationInvidious() + } else { + this.getPlaylistInformationLocal() + } + } + } }, mounted: function () { const cachedPlaylist = this.$store.getters.getCachedPlaylist