Fix network leak to Invidious instance when viewing channel playlists on Local API
This commit is contained in:
parent
13e944a425
commit
eab93c2b61
|
@ -57,6 +57,10 @@ export default Vue.extend({
|
||||||
this.channelLink = this.data.authorUrl
|
this.channelLink = this.data.authorUrl
|
||||||
this.playlistLink = this.data.playlistId
|
this.playlistLink = this.data.playlistId
|
||||||
this.videoCount = this.data.videoCount
|
this.videoCount = this.data.videoCount
|
||||||
|
|
||||||
|
if (this.data.proxyThumbnail === false) {
|
||||||
|
this.thumbnail = this.data.playlistThumbnail
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
parseLocalData: function () {
|
parseLocalData: function () {
|
||||||
|
|
|
@ -410,7 +410,10 @@ export default Vue.extend({
|
||||||
getPlaylistsLocal: function () {
|
getPlaylistsLocal: function () {
|
||||||
ytch.getChannelPlaylistInfo(this.id, this.playlistSortBy).then((response) => {
|
ytch.getChannelPlaylistInfo(this.id, this.playlistSortBy).then((response) => {
|
||||||
console.log(response)
|
console.log(response)
|
||||||
this.latestPlaylists = response.items
|
this.latestPlaylists = response.items.map((item) => {
|
||||||
|
item.proxyThumbnail = false
|
||||||
|
return item
|
||||||
|
})
|
||||||
this.playlistContinuationString = response.continuation
|
this.playlistContinuationString = response.continuation
|
||||||
this.isElementListLoading = false
|
this.isElementListLoading = false
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
|
Loading…
Reference in New Issue