即使使用 videoEmbedable = True,v3 api 也会返回被阻止的内容 [英] v3 api returns blocked content even with videoEmbedable = True

查看:23
本文介绍了即使使用 videoEmbedable = True,v3 api 也会返回被阻止的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在搜索请求中使用了 v3 api 和 videoEmbeddable="true".

I am using v3 api and videoEmbeddable="true" in my search request.

但是,当我尝试在我的网页上播放视频时,它说该内容被阻止显示在此站点上.在 YouTube 上观看.

However, when I try to play the video(s) on my webpage, it says the content is blocked to be displayed on this site. Watch it on Youtube.

是否有一个我可以使用的参数不会返回不可嵌入的视频?

Is there a parameter that I can use which will not return non-embeddable videos?

*编辑 *

视频回复:

{u'items': [{u'snippet': {u'title': u'Jerez - Yamaha Preview'}, u'contentDetails': {u'definition': u'hd', u'contentRating': {u'ytRating': u'ytAllAudiences'}, u'caption': u'false', u'duration': u'PT1M21S', u'licensedContent': True, u'dimension': u'2d'}, u'status': {u'publicStatsViewable': True, u'privacyStatus': u'public', u'uploadStatus': u'processed', u'license': u'youtube', u'embeddable': True}, u'id': u'aaR72Xf_4wc'}]}

查询:

return yt_service_v3.videos().list(
  id='aaR72Xf_4wc',
  part="id,snippet,contentDetails,status",
  fields="items(id,snippet(title),contentDetails,status)",
).execute()

此视频不可嵌入到我的网页中,并且在回复中没有任何内容表明此视频不可嵌入.

This video is not embeddable on my webpage and in the response there is nothing to suggest that this video is not embeddable.

我同时请求 contentDetails 和 status.我不是通过移动设备请求

I request both contentDetails and status. I am not requesting via mobile device

请指点.

推荐答案

一小部分视频的内容所有者应用了域级白名单或黑名单.这些限制不会反映在 API 响应中.

A small subset of videos have domain-level whitelists or blacklists applied to them by their content owners. Those restrictions are not reflected in API responses.

这就是您在 aaR72Xf_4wc关于播放限制的博文

偶尔会出现更微妙的限制玩.目前并非所有这些都可以通过 API 查询.为了例如,某些视频只能在特定的域集上播放.

There are even more subtle restrictions that occasionally come into play. Not all of these are currently queryable via the API. For instance, some videos are only playable on a certain set of domains.

这篇关于即使使用 videoEmbedable = True,v3 api 也会返回被阻止的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆