From e4c1f107bd709488b1053afce7f69f69f2609a43 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Sat, 17 Apr 2021 22:23:05 +0800 Subject: [PATCH] GoogleVideoSearch: fix duration Forgot that `moment.duration()` takes in ms. --- web/src/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/html.js b/web/src/html.js index ca9014863..a310f45d7 100644 --- a/web/src/html.js +++ b/web/src/html.js @@ -191,7 +191,7 @@ function buildGoogleVideoMetadata(claimUri, claim) { thumbnailUrl: `${claimThumbnail}`, uploadDate: `${new Date(releaseTime * 1000).toISOString()}`, // --- Recommended --- - duration: moment.duration(claim.duration).toISOString(), + duration: moment.duration(claim.duration * 1000).toISOString(), contentUrl: generateDirectUrl(claim.name, claim.claim_id), embedUrl: generateEmbedUrl(claim.name, claim.claim_id), };