Proxy thumbnails from playlist
This commit is contained in:
parent
acf9b850c2
commit
22eaf9a2b9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue