diff --git a/src/renderer/components/FtListChannel/FtListChannel.vue b/src/renderer/components/FtListChannel/FtListChannel.vue index 59915b32702c2..a9648cdc066de 100644 --- a/src/renderer/components/FtListChannel/FtListChannel.vue +++ b/src/renderer/components/FtListChannel/FtListChannel.vue @@ -155,7 +155,7 @@ function parseLocalData() { subscriberCount = props.data.subscribers } - if (props.data.videoCount != null) { + if (props.data.videos != null) { videoCount = props.data.videos } diff --git a/src/renderer/helpers/api/local.js b/src/renderer/helpers/api/local.js index bca67efd8e32b..68bc3f78b0103 100644 --- a/src/renderer/helpers/api/local.js +++ b/src/renderer/helpers/api/local.js @@ -1324,7 +1324,10 @@ function parseListItem(item, channelId, channelName) { let subscribers = null let videos = null - subscribers = parseLocalSubscriberCount(channel.subscribers.text) + if (channel.subscribers?.text) { + subscribers = parseLocalSubscriberCount(channel.subscribers.text) + } + videos = extractNumberFromString(channel.video_count.text) return {