fix(route): youtube author (#10449)

This commit is contained in:
Tony 2022-08-12 01:59:47 -11:00 committed by GitHub
parent 7c171c8932
commit 8cdbbb28d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ module.exports = async (ctx) => {
description: utils.renderDescription(embed, videoId, img, utils.formatDescription(snippet.description)),
pubDate: parseDate(snippet.publishedAt),
link: `https://www.youtube.com/watch?v=${videoId}`,
author: snippet.videoOwnerChannelTitle,
};
}),
};

View File

@ -28,6 +28,7 @@ module.exports = async (ctx) => {
description: utils.renderDescription(embed, videoId, img, utils.formatDescription(snippet.description)),
pubDate: parseDate(snippet.publishedAt),
link: `https://www.youtube.com/watch?v=${videoId}`,
author: snippet.videoOwnerChannelTitle,
};
}),
};