From b934b7a9379f4dda01f51f732317ee3dc4a46365 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 14 Apr 2024 01:26:03 -0400 Subject: [PATCH] Use innertube when possible --- src/routes/voteOnSponsorTime.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/voteOnSponsorTime.ts b/src/routes/voteOnSponsorTime.ts index 9c9fe2e..ffc2101 100644 --- a/src/routes/voteOnSponsorTime.ts +++ b/src/routes/voteOnSponsorTime.ts @@ -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