mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Use innertube when possible
This commit is contained in:
parent
f2cf2e2aac
commit
b934b7a937
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue