Anarios / return-youtube-dislike

Chrome extension to return youtube dislikes
https://returnyoutubedislike.com/
GNU General Public License v3.0
12.64k stars 565 forks source link

ReturnYouTubeDislike API: add field to indicate if likes are hidden by the video creator #871

Closed LisoUseInAIKyrios closed 2 months ago

LisoUseInAIKyrios commented 1 year ago

Request or suggest a new feature!

Since RYD does not support showing dislikes on videos with hidden likes, it puts the burden on the client to figure out if the RYD API data is valid or not.

For videos with hidden likes, RYD API always gives back data showing zero likes and dislikes. example video RYD API data for example video:

{
"id":"UnrU5vxCHxw",
"dateCreated":"2023-01-10T08:24:54.927168Z",
"likes":0,
"dislikes":0,
"rating":0,
"viewCount":91,
"deleted":false
}

That means for the client to validate the RYD data, it must also load the YouTube video and check if the video likes are hidden (ie: muck about with parsing the UI text strings)

Ways to implement this!

The RYD API should add a field to the data returned by Votes, to indicate if the video is hidden by the creator. Something like a boolean field called hiddenByCreator. The field can be updated periodically, and it does not need to guarantee it matches the current video status. It only needs to provide if the video likes were hidden the last time the RYD API checked.

LisoUseInAIKyrios commented 2 months ago

Since RYD now returns raw like and dislikes, this feature is still nice to have but no longer needed.