YouTube API v3喜欢视频,但计数器不会增加 [英] YouTube API v3 likes a video, but the counter doesn't increase
问题描述
每当我尝试通过YouTube API顶视频时,它都会将视频标记为顶",但每次顶赞计数器都不会增加.它告诉我说我喜欢该视频,因为喜欢"按钮是完全绿色的,但不算它为喜欢"吗?
Whenever I try to like a video through the YouTube API, it flags the video as liked but the like counter doesn't increase whenever I do. It tells me that I've liked the video, because the like button is fully green, but it doesn't count it as liked?
我正在通过CURL和PHP使用此链接:
I'm using this link through CURL with PHP:
https://www.googleapis.com/youtube/v3/videos/rate?access_token=(the token)&id=(video id)&rating=like
如果这样做,我不会收到任何错误消息.我没有收到任何回复,根据文档,这是正确的.
I don't get an error if I do this. I don't get any response back, which is correct according to the docs.
谁能告诉我为什么喜欢的计数器不增加?
Could anyone tell me why the like counter doesn't increase?
可以使用rating = dislike添加不喜欢的内容,但不会将喜欢的内容添加到计数器中!
Dislikes can be added with rating=dislike, but likes won't be added to the counter !
推荐答案
简单的解释:Youtube不会将喜欢的人数和观看次数都计算在内.它们会在一段时间后定期更新.这使Google能够分析喜欢/观看次数并过滤可疑行为.请记住,影片的301观看次数限制,几周前他们将其更改为显示301+,以表明已经有更多观看次数,但以后计数会增加.
因此,如果您等待几分钟/几小时,您的喜好就会出现,但是您不能确定它确实是您的,因为与此同时任何人也可能喜欢它;)
Easy explanation: Youtube doesn´t count the likes live, as well as the views. They are periodical updated after a certain amount of time. This enables google to analyze the likes / views and filter suspicious actions. Remember the 301-views limit of the videos, a few weeks ago they changed it to display 301+ to indicate that there are more views already, but the count will incrase later on.
So if you wait a few minutes/hours your like should appear, but you cant be sure its really yours since anybody could have liked it too in the meantime ;)
您需要更详细的说明吗?
Do you need a more detailed explanation?
也许观看此youtube视频 http://www.youtube.com/watch?v= oIkhgagvrjI 了解该原理.
Maybe watch this youtube video http://www.youtube.com/watch?v=oIkhgagvrjI to understand that principle.
这篇关于YouTube API v3喜欢视频,但计数器不会增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!