Youtube API 返回未列出的视频 [英] Youtube API returning unlisted videos

查看:29
本文介绍了Youtube API 返回未列出的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,我使用 YouTube API.我得到一个频道资源的上传"相关播放列表,然后列出所有视频.

In my app I use the YouTube API. I got the "uploads" related playlist of a channel resource, and then list all videos.

这在一段时间内运行良好,但现在,此播放列表正在返回未列出"的视频,如下所示:

This worked fine for some time, but now, this playlist is returning 'unlisted' videos like this:

"status": {
  "privacyStatus": "unlisted"
}

有没有办法过滤这些视频?我以为它们是隐藏的",但它们确实出现了......

Is there a way to filter these videos? I thought they were 'hidden', but they do show up...

编辑:它甚至返回私人视频:

Edit: It is even returning private videos:

"status": {
  "privacyStatus": "private"
}

推荐答案

由于您是该频道的所有者,它会返回所有可用的视频.如果您试图查看其他人的上传内容,它只会显示公开的内容.

Since you are the owner of that channel it returns all the videos available. IF you were trying to see someone else's uploads, it would show only public ones.

看看 我的开源项目:Android Direct Lite 看看,我如何只显示公共项目.

Look at my open source project: Android Direct Lite to see, how I show only public ones.

这篇关于Youtube API 返回未列出的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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