Fix network leak to Invidious instance when viewing channel playlists on Local API

This commit is contained in:
Preston 2021-01-11 11:26:14 -05:00
parent 13e944a425
commit eab93c2b61
2 changed files with 8 additions and 1 deletions

View File

@ -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 () {

View File

@ -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) => {