From e69d835b27de05b5a26a77763a6324748e78e386 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Sun, 21 Jun 2026 15:03:02 +0800 Subject: [PATCH 1/2] ! Fix premierDate parsing --- src/renderer/helpers/api/local.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/helpers/api/local.js b/src/renderer/helpers/api/local.js index 7aaf6c52ea8d2..d5c815c996e94 100644 --- a/src/renderer/helpers/api/local.js +++ b/src/renderer/helpers/api/local.js @@ -1536,7 +1536,7 @@ export function parseLocalListVideo(item, channelId, channelName) { const VIEWS_OR_WATCHING_REGEX = /views?|watching|waiting/i const WAITING_REGEX = /waiting/i const VIEWS_IN_NUMBER_ONLY = /^\d+(\.\d)?[km]?$/i -const PREMIERES_TIME_REGEX = /^premieres /i +const PREMIERES_TIME_REGEX = /^(premieres|scheduled for) /i /** * @param {string | undefined} text From a1282bb3c212e3ab6a478c7f057a3f8cedf487b2 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Sun, 21 Jun 2026 15:18:47 +0800 Subject: [PATCH 2/2] ! Fix channel name detection for upcoming videos in channel live tab --- src/renderer/helpers/api/local.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/helpers/api/local.js b/src/renderer/helpers/api/local.js index d5c815c996e94..e93c2f81cec30 100644 --- a/src/renderer/helpers/api/local.js +++ b/src/renderer/helpers/api/local.js @@ -1677,12 +1677,16 @@ function parseLockupView(lockupView, channelId = undefined, channelName = undefi } const maybeAuthorText = lockupView.metadata.metadata?.metadata_rows[0].metadata_parts?.[0].text?.text + let author = channelName + if (maybeAuthorText && !isViewOrWaitingCountText(maybeAuthorText) && !isPremieresTimeText(maybeAuthorText)) { + author = maybeAuthorText + } return { type: 'video', videoId: lockupView.content_id, title: lockupView.metadata.title.text?.trim(), - author: maybeAuthorText && !isViewOrWaitingCountText(maybeAuthorText) ? maybeAuthorText : channelName, + author, authorId: lockupView.metadata.image?.renderer_context?.command_context?.on_tap?.payload.browseId ?? channelId, viewCount, published: calculatePublishedDate(publishedText, liveNow, isUpcoming, premiereDate),