通过 Netflix API 确定最近排队/最近观看的影片的队列数量
我见过其他网站(InstantWatcher 和 Instant Watch DB)这样做,但是如何做呢?我在 API 中没有看到任何公开此类数据的内容?这让我抓狂!他们是怎么做到的?我在 API 中遗漏了什么吗?
谷歌领域对此没有任何内容。我看过...
I've seen other websites (InstantWatcher & Instant Watch DB) doing this, but how? I don't see anything in the API that exposes this kind of data? This is driving me batty! How are they doing it?! Am I missing something in the API??
And there is nothing in Google-land regarding this. I've looked...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要开始自己跟踪这些数据。您可以在“播放”或“队列”按钮/链接上放置一个 JavaScript 挂钩,以 ping 您的服务器并增加数据存储中标题的队列/播放计数。
如果您查看 instantwatchdb.com 上的添加队列按钮,您会看到这种挂钩:
logQueue
调用是对自定义 JavaScript 的调用,该 JavaScript 会增加本地队列计数。You need to start tracking this data on your own. You can put a JavaScript hook on the "play" or "queue" buttons/links that pings you server and increments the queue/play count for the title in your datastore.
If you look at the add queue button on instantwatchdb.com, you'll see this kind of hook:
The
logQueue
call is to an custom JavaScript that increments the local queue count.