Skip to content

Commit

Permalink
Use innertube when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Apr 14, 2024
1 parent f2cf2e2 commit b934b7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/voteOnSponsorTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b934b7a

Please sign in to comment.