Skip to content

Commit

Permalink
Get thumbnail from parsed header when using local api for subscribedc…
Browse files Browse the repository at this point in the history
…hannels view
  • Loading branch information
ChunkyProgrammer committed Aug 29, 2024
1 parent 19b04e3 commit 60e4c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/views/SubscribedChannels/SubscribedChannels.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import FtFlexBox from '../../components/ft-flex-box/ft-flex-box.vue'
import FtInput from '../../components/ft-input/ft-input.vue'
import FtSubscribeButton from '../../components/ft-subscribe-button/ft-subscribe-button.vue'
import { invidiousGetChannelInfo, youtubeImageUrlToInvidious, invidiousImageUrlToInvidious } from '../../helpers/api/invidious'
import { getLocalChannel } from '../../helpers/api/local'
import { getLocalChannel, parseLocalChannelHeader } from '../../helpers/api/local'
import { ctrlFHandler } from '../../helpers/utils'

export default defineComponent({
Expand Down Expand Up @@ -141,7 +141,7 @@ export default defineComponent({
getLocalChannel(channel.id).then(response => {
if (!response.alert) {
this.updateSubscriptionDetails({
channelThumbnailUrl: this.thumbnailURL(response.header.author.thumbnails[0].url),
channelThumbnailUrl: this.thumbnailURL(parseLocalChannelHeader(response).thumbnailUrl),
channelName: channel.name,
channelId: channel.id
})
Expand Down

0 comments on commit 60e4c67

Please sign in to comment.