Proxy thumbnails from playlist

This commit is contained in:
Preston 2020-10-13 12:17:35 -04:00
parent acf9b850c2
commit 22eaf9a2b9
1 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ export default Vue.extend({
} }
}, },
computed: { computed: {
invidiousInstance: function () {
return this.$store.getters.getInvidiousInstance
},
listType: function () { listType: function () {
return this.$store.getters.getListType return this.$store.getters.getListType
}, },
@ -48,7 +52,7 @@ export default Vue.extend({
methods: { methods: {
parseInvidiousData: function () { parseInvidiousData: function () {
this.title = this.data.title 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.channelName = this.data.author
this.channelLink = this.data.authorUrl this.channelLink = this.data.authorUrl
this.playlistLink = this.data.playlistId this.playlistLink = this.data.playlistId