Skip to content

Commit 60e4c67

Browse files
Get thumbnail from parsed header when using local api for subscribedchannels view
1 parent 19b04e3 commit 60e4c67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/views/SubscribedChannels/SubscribedChannels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import FtFlexBox from '../../components/ft-flex-box/ft-flex-box.vue'
55
import FtInput from '../../components/ft-input/ft-input.vue'
66
import FtSubscribeButton from '../../components/ft-subscribe-button/ft-subscribe-button.vue'
77
import { invidiousGetChannelInfo, youtubeImageUrlToInvidious, invidiousImageUrlToInvidious } from '../../helpers/api/invidious'
8-
import { getLocalChannel } from '../../helpers/api/local'
8+
import { getLocalChannel, parseLocalChannelHeader } from '../../helpers/api/local'
99
import { ctrlFHandler } from '../../helpers/utils'
1010

1111
export default defineComponent({
@@ -141,7 +141,7 @@ export default defineComponent({
141141
getLocalChannel(channel.id).then(response => {
142142
if (!response.alert) {
143143
this.updateSubscriptionDetails({
144-
channelThumbnailUrl: this.thumbnailURL(response.header.author.thumbnails[0].url),
144+
channelThumbnailUrl: this.thumbnailURL(parseLocalChannelHeader(response).thumbnailUrl),
145145
channelName: channel.name,
146146
channelId: channel.id
147147
})

0 commit comments

Comments
 (0)