From eab93c2b6192357de4aaeff29d1ee9943c263bf8 Mon Sep 17 00:00:00 2001 From: Preston Date: Mon, 11 Jan 2021 11:26:14 -0500 Subject: [PATCH] Fix network leak to Invidious instance when viewing channel playlists on Local API --- src/renderer/components/ft-list-playlist/ft-list-playlist.js | 4 ++++ src/renderer/views/Channel/Channel.js | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/ft-list-playlist/ft-list-playlist.js b/src/renderer/components/ft-list-playlist/ft-list-playlist.js index 4379589c..01fcc483 100644 --- a/src/renderer/components/ft-list-playlist/ft-list-playlist.js +++ b/src/renderer/components/ft-list-playlist/ft-list-playlist.js @@ -57,6 +57,10 @@ export default Vue.extend({ this.channelLink = this.data.authorUrl this.playlistLink = this.data.playlistId this.videoCount = this.data.videoCount + + if (this.data.proxyThumbnail === false) { + this.thumbnail = this.data.playlistThumbnail + } }, parseLocalData: function () { diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js index 4563801a..0f7aff4e 100644 --- a/src/renderer/views/Channel/Channel.js +++ b/src/renderer/views/Channel/Channel.js @@ -410,7 +410,10 @@ export default Vue.extend({ getPlaylistsLocal: function () { ytch.getChannelPlaylistInfo(this.id, this.playlistSortBy).then((response) => { console.log(response) - this.latestPlaylists = response.items + this.latestPlaylists = response.items.map((item) => { + item.proxyThumbnail = false + return item + }) this.playlistContinuationString = response.continuation this.isElementListLoading = false }).catch((err) => {