use value.audio for google video metadata

This commit is contained in:
btzr-io 2021-08-05 00:56:06 -05:00 committed by infinite-persistence
parent 6d91d1c799
commit 45fcf0d518
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -217,7 +217,7 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}) {
function buildGoogleVideoMetadata(uri, claim) { function buildGoogleVideoMetadata(uri, claim) {
const { claimName } = parseURI(uri); const { claimName } = parseURI(uri);
const { meta, value } = claim; const { meta, value } = claim;
const media = value && (value.video || value.audio || value.image); const media = value && value.video;
const source = value && value.source; const source = value && value.source;
const thumbnail = value && value.thumbnail && value.thumbnail.url; const thumbnail = value && value.thumbnail && value.thumbnail.url;
const mediaType = source && source.media_type; const mediaType = source && source.media_type;