From 33bd23c75f162871ffd3acf02ca41d97012382d4 Mon Sep 17 00:00:00 2001 From: Kelvin <kelvin@futo.org> Date: Thu, 4 Jan 2024 14:04:59 +0100 Subject: [PATCH] Fix runs issue on video authors --- YoutubeConfig.json | 2 +- YoutubeScript.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/YoutubeConfig.json b/YoutubeConfig.json index 6493178..7d66bd7 100644 --- a/YoutubeConfig.json +++ b/YoutubeConfig.json @@ -7,7 +7,7 @@ "sourceUrl": "https://plugins.grayjay.app/Youtube/YoutubeConfig.json", "repositoryUrl": "https://futo.org", "scriptUrl": "./YoutubeScript.js", - "version": 161, + "version": 162, "iconUrl": "./youtube.png", "id": "35ae969a-a7db-11ed-afa1-0242ac120002", diff --git a/YoutubeScript.js b/YoutubeScript.js index 908e837..e1dc799 100644 --- a/YoutubeScript.js +++ b/YoutubeScript.js @@ -3255,7 +3255,7 @@ function extractVideoWithContextRenderer_AuthorLink(videoRenderer) { } function extractVideoRenderer_AuthorLink(videoRenderer) { const id = videoRenderer.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer?.navigationEndpoint?.browseEndpoint?.browseId; - const name = extractRuns_String(videoRenderer.ownerText.runs); + const name = extractText_String(videoRenderer.ownerText)//extractRuns_String(videoRenderer.ownerText.runs); const channelIcon = videoRenderer.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer; const thumbUrl = channelIcon.thumbnail.thumbnails[0].url; const channelUrl = (!id) ? extractRuns_Url(videoRenderer.ownerText.runs) : URL_BASE + "/channel/" + id; -- GitLab