使用 Youtube Data API 使我的视频在上传时成为私密视频 [英] Using Youtube Data API makes my videos private on upload

查看:15
本文介绍了使用 Youtube Data API 使我的视频在上传时成为私密视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚制作了一个应用程序";将视频上传到给定文件夹中,该程序可以正常工作,但是每当我通过我的程序上传视频时,它都会将视频设为私有(锁定).然后我收到一封邮件,说我的计划尚未获得批准.我尝试将 status.privacyStatus 设置为未列出和公开,但没有成功.

I've just made an "app" that uploads videos in a given folder, the program works, however whenever I upload a video through my program, it makes the video private (locked). I then get a mail saying that my program has not yet been approved. I have tried setting status.privacyStatus to both unlisted and public, without succes.

知道如何让我的申请获得批准,以便上传公共视频吗?

Any idea on how to get my application approved so I can upload public videos?

我怀疑这可能与 Oauth 有关,但我不确定我哪里出错了

I suspect it might have to do with Oauth, however I am not sure where I went wrong

推荐答案

根据谷歌支持的文章 视频被锁定为私有,您描述的问题是故意的:

According to Google support's article Videos locked as private, the issue that you've described happens by design:

对于因通过未经验证的 API 服务上传而被锁定为私有的视频,您将无法提出申诉.您需要通过经过验证的 API 服务或 YouTube 应用/网站重新上传视频.未经验证的API服务也可以申请API审核.

For videos that have been locked as private due to upload via an unverified API service, you will not be able to appeal. You’ll need to re-upload the video via a verified API service or via the YouTube app/site. The unverified API service can also apply for an API audit.

为确保您的视频不会再次被锁定为私密,请勿发布以下内容:

To ensure your video isn’t locked private again, don’t post content that:

  • [...]
  • 已由未经验证的第三方 API 服务上传.

不幸的是,在您的应用获得 Google 批准之前,如果需要公开视频内容,您别无选择,只能通过 YouTube 的 Web UI 手动上传该内容(或使用访问该 UI 以编程方式;但据我所知,TOS 文档禁止此类活动).

As unfortunate as it is, until your app gets approved by Google, if needing to make video content publicly available, you have no other option than to upload that content manually by means of YouTube's Web UI (or use a tool that accesses that UI programmatically; but, as far as I know, this kind of activity is forbidden by the TOS docs).

Videos.insert的官方文档 API 端点指定了与上述完全相同的要求:

The official document of the Videos.insert API endpoint specifies the very same requirement as above:

通过 videos.insert 端点从 2020 年 7 月 28 日之后创建的未经验证的 API 项目上传的所有视频都将被限制为私人观看模式.要解除此限制,每个 API 项目都必须接受审核以验证是否符合服务条款.有关详细信息,请参阅 API 修订历史记录.

All videos uploaded via the videos.insert endpoint from unverified API projects created after 28 July 2020 will be restricted to private viewing mode. To lift this restriction, each API project must undergo an audit to verify compliance with the Terms of Service. Please see the API Revision History for more details.


与此问题相关的API Revision History的条目内容如下:

2020 年 7 月 28 日之后创建的未经验证的 API 项目通过 videos.insert 端点上传的所有视频都将被限制为私人观看模式.要解除此限制,每个项目都必须接受审核以验证是否符合服务条款.

All videos uploaded via the videos.insert endpoint from unverified API projects created after 28 July 2020 will be restricted to private viewing mode. To lift this restriction, each project must undergo an audit to verify compliance with the Terms of Service.

使用未经验证的 API 客户端上传视频的创作者将收到一封电子邮件,说明他们的视频已被锁定为私有,并且他们可以通过使用官方或经过审核的客户端来避免限制.

Creators who use an unverified API client to upload video will receive an email explaining that their video is locked as private, and that they can avoid the restriction by using an official or audited client.

在 2020 年 7 月 28 日之前创建的 API 项目目前不受此更改的影响.但是,我们强烈建议所有开发者完成其项目的合规性审核,以确保继续访问 YouTube API 服务.

API projects created prior to 28 July 2020 are not currently affected by this change. However, we strongly recommend that all developers complete a compliance audit for their projects to ensure continued access to the YouTube API Services.

这篇关于使用 Youtube Data API 使我的视频在上传时成为私密视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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