GoogleVideoSearch: fix duration
Forgot that `moment.duration()` takes in ms.
This commit is contained in:
parent
6ba97eddb2
commit
e4c1f107bd
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ function buildGoogleVideoMetadata(claimUri, claim) {
|
||||||
thumbnailUrl: `${claimThumbnail}`,
|
thumbnailUrl: `${claimThumbnail}`,
|
||||||
uploadDate: `${new Date(releaseTime * 1000).toISOString()}`,
|
uploadDate: `${new Date(releaseTime * 1000).toISOString()}`,
|
||||||
// --- Recommended ---
|
// --- Recommended ---
|
||||||
duration: moment.duration(claim.duration).toISOString(),
|
duration: moment.duration(claim.duration * 1000).toISOString(),
|
||||||
contentUrl: generateDirectUrl(claim.name, claim.claim_id),
|
contentUrl: generateDirectUrl(claim.name, claim.claim_id),
|
||||||
embedUrl: generateEmbedUrl(claim.name, claim.claim_id),
|
embedUrl: generateEmbedUrl(claim.name, claim.claim_id),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue