From 22eaf9a2b969bed225ff7e62ced0cf8a97b5ed89 Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 13 Oct 2020 12:17:35 -0400 Subject: [PATCH] Proxy thumbnails from playlist --- .../components/ft-list-playlist/ft-list-playlist.js | 6 +++++- 1 file changed, 5 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 06309be5..e6eed67b 100644 --- a/src/renderer/components/ft-list-playlist/ft-list-playlist.js +++ b/src/renderer/components/ft-list-playlist/ft-list-playlist.js @@ -24,6 +24,10 @@ export default Vue.extend({ } }, computed: { + invidiousInstance: function () { + return this.$store.getters.getInvidiousInstance + }, + listType: function () { return this.$store.getters.getListType }, @@ -48,7 +52,7 @@ export default Vue.extend({ methods: { parseInvidiousData: function () { this.title = this.data.title - this.thumbnail = this.data.playlistThumbnail + this.thumbnail = this.data.playlistThumbnail.replace('https://i.ytimg.com', this.invidiousInstance).replace('hqdefault', 'mqdefault') this.channelName = this.data.author this.channelLink = this.data.authorUrl this.playlistLink = this.data.playlistId