Youtube API returning unlisted videos

别说谁变了你拦得住时间么 提交于 2019-12-01 03:49:50

问题


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"
}

回答1:


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.

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



来源:https://stackoverflow.com/questions/19321711/youtube-api-returning-unlisted-videos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!