From e0a06b109e55c35fe2da89785c8fd27ddecdb2f3 Mon Sep 17 00:00:00 2001 From: Kelvin <kelvin@futo.org> Date: Tue, 5 Mar 2024 00:04:48 +0100 Subject: [PATCH] Support new date structure in comments --- YoutubeConfig.json | 2 +- YoutubeScript.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/YoutubeConfig.json b/YoutubeConfig.json index e127968..9865d2d 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": 166, + "version": 167, "iconUrl": "./youtube.png", "id": "35ae969a-a7db-11ed-afa1-0242ac120002", diff --git a/YoutubeScript.js b/YoutubeScript.js index bfc7938..906ef53 100644 --- a/YoutubeScript.js +++ b/YoutubeScript.js @@ -3483,7 +3483,7 @@ function extractNavigationEndpoint_Url(navEndpoint, baseUrl) { } function extractAgoTextRuns_Timestamp(runs) { - const runStr = extractRuns_String(runs); + const runStr = (typeof runs === "string") ? runs : extractRuns_String(runs); return extractAgoText_Timestamp(runStr); } function extractAgoText_Timestamp(str) { -- GitLab