Skip to content

Commit a16205d

Browse files
committed
! Fix cross channel videos link sometimes broken (Local API
1 parent 7d24561 commit a16205d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/helpers/api/local.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ export function parseLocalPlaylistVideo(video) {
13451345
videoId: video_.id,
13461346
title: video_.title.text,
13471347
author: video_.author.name,
1348-
authorId: video_.author.id,
1348+
authorId: video_.author?.id !== 'N/A' ? video_.author?.id : null,
13491349
viewCount,
13501350
published,
13511351
lengthSeconds: isNaN(video_.duration.seconds) ? '' : video_.duration.seconds,
@@ -1401,7 +1401,7 @@ export function parseLocalListVideo(item, channelId, channelName) {
14011401
videoId: video.video_id,
14021402
title: video.title.text,
14031403
author: video.author?.name ?? channelName,
1404-
authorId: video.author?.id ?? channelId,
1404+
authorId: (video.author?.id != null && video.author?.id !== 'N/A') ? video.author?.id : channelId,
14051405
viewCount: video.views.text == null ? null : extractNumberFromString(video.views.text),
14061406
published,
14071407
lengthSeconds: isLive ? '' : Utils.timeToSeconds(video.duration.text),

0 commit comments

Comments
 (0)