GoogleVideoSearch: fix duration

Forgot that `moment.duration()` takes in ms.
This commit is contained in:
infinite-persistence 2021-04-17 22:23:05 +08:00 committed by Sean Yesmunt
parent 6ba97eddb2
commit e4c1f107bd

View file

@ -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),
};