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: {
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