diff --git a/src/libpoketube/libpoketube-dislikes.js b/src/libpoketube/libpoketube-dislikes.js index 8eae43a3..da029d97 100644 --- a/src/libpoketube/libpoketube-dislikes.js +++ b/src/libpoketube/libpoketube-dislikes.js @@ -41,11 +41,14 @@ class PokeTubeAPI { * @private */ async _getEngagementData() { - const fallbackUrl = `https://returnyoutubedislikeapi.com/votes?videoId=${this.videoId}`; + var url = [`https://p.poketube.fun/api?v=${this.videoId}&hash=d0550b6e28c8f93533a569c314d5b4e2`, `https://returnyoutubedislikeapi.com/votes?videoId=${this.videoId}`] + const dislikes = + url[Math.floor(Math.random() * url.length)]; + const { fetch } = await import("undici"); - const engagement = await fetch(fallbackUrl).then((res) => res.json()); + const engagement = await fetch(dislikes).then((res) => res.json()); return engagement; }