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.
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:
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 calledhiddenByCreator
. 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.