diff --git a/src/libpoketube/libpoketube-dislikes.js b/src/libpoketube/libpoketube-dislikes.js index d9eab133..74ec6e8b 100644 --- a/src/libpoketube/libpoketube-dislikes.js +++ b/src/libpoketube/libpoketube-dislikes.js @@ -35,13 +35,13 @@ class PokeTubeDislikesAPIManager { } } - /** + /** * Retrieves engagement data for the YouTube video. * @returns {Promise} A Promise that resolves with the engagement data, or null if an error occurs. * @private */ async _getEngagementData() { - const fallbackUrl = `https://returnyoutubedislikeapi.com/votes?videoId=${this.videoId}&cachefixer=${btoa(Date.now())}`; + const fallbackUrl = `https://prod-poketube.testing.poketube.fun/api?v=${this.videoId}`; const { fetch } = await import("undici"); @@ -49,6 +49,7 @@ class PokeTubeDislikesAPIManager { return engagement; } + /** * Retrieves data about the YouTube video and its engagement. * @returns {Promise} A Promise that resolves with an object containing video and engagement data.