mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 18:29:03 +01:00
fix dislikes lel
This commit is contained in:
parent
b69e87393d
commit
c133288d37
1 changed files with 3 additions and 5 deletions
|
@ -33,10 +33,8 @@ function getJson(str) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const dislike = await fetch(`${dislike_api}${video_id}`).then((res) =>
|
const dislike = await fetch(`${dislike_api}${video_id}`)
|
||||||
res.json()
|
const engagement = getJson(dislike)
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
const headers = {};
|
const headers = {};
|
||||||
/*
|
/*
|
||||||
|
@ -55,7 +53,7 @@ function getJson(str) {
|
||||||
*/
|
*/
|
||||||
const returner = {
|
const returner = {
|
||||||
video: await parsexml(video_id),
|
video: await parsexml(video_id),
|
||||||
engagement: dislike,
|
engagement,
|
||||||
video_url_youtube: `${youtube_url}${video_id}`,
|
video_url_youtube: `${youtube_url}${video_id}`,
|
||||||
};
|
};
|
||||||
return returner;
|
return returner;
|
||||||
|
|
Loading…
Reference in a new issue