mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-09-19 20:51:19 +02: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) {
|
if (config.newLeafURLs !== null) {
|
||||||
const videoID = submissionInfoRow.videoID;
|
const videoID = submissionInfoRow.videoID;
|
||||||
const { err, data } = await YouTubeAPI.listVideos(videoID);
|
const data = await getVideoDetails(videoID);
|
||||||
if (err) return;
|
|
||||||
|
|
||||||
const isUpvote = voteData.incrementAmount > 0;
|
const isUpvote = voteData.incrementAmount > 0;
|
||||||
// Send custom webhooks
|
// Send custom webhooks
|
||||||
|
|
Loading…
Reference in a new issue