Use innertube when possible

This commit is contained in:
Ajay 2024-04-14 01:26:03 -04:00
parent f2cf2e2aac
commit b934b7a937

View file

@ -130,8 +130,7 @@ async function sendWebhooks(voteData: VoteData) {
if (config.newLeafURLs !== null) {
const videoID = submissionInfoRow.videoID;
const { err, data } = await YouTubeAPI.listVideos(videoID);
if (err) return;
const data = await getVideoDetails(videoID);
const isUpvote = voteData.incrementAmount > 0;
// Send custom webhooks