diff --git a/src/renderer/components/ft-list-channel/ft-list-channel.js b/src/renderer/components/ft-list-channel/ft-list-channel.js index 51639d56e..c4525fcf9 100644 --- a/src/renderer/components/ft-list-channel/ft-list-channel.js +++ b/src/renderer/components/ft-list-channel/ft-list-channel.js @@ -66,7 +66,16 @@ export default Vue.extend({ }, parseInvidiousData: function () { - this.thumbnail = this.data.authorThumbnails[2].url.replace('https://yt3.ggpht.com', `${this.currentInvidiousInstance}/ggpht/`) + // Can be prefixed with `https://` or `//` (protocol relative) + let thumbnailUrl = this.data.authorThumbnails[2].url + + // Update protocol relative URL to be prefixed with `https://` + if (thumbnailUrl.startsWith('//')) { + thumbnailUrl = `https:${thumbnailUrl}` + } + + this.thumbnail = thumbnailUrl.replace('https://yt3.ggpht.com', `${this.currentInvidiousInstance}/ggpht/`) + this.channelName = this.data.author this.id = this.data.authorId if (this.hideChannelSubscriptions) {