Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload video as unlisted #249

Open
amHammock opened this issue Apr 1, 2015 · 0 comments
Open

Upload video as unlisted #249

amHammock opened this issue Apr 1, 2015 · 0 comments

Comments

@amHammock
Copy link

Hello, this is not really a BUG, but it was very difficult to track down and could be implemented and/or documented more clearly.

To upload a video as unlisted, the youtube_it call is:

vid = client.video_upload(File.open("myvideo.mp4"), :title => "My Video Title", :list=>'denied')

For private videos the option is :private => true. Everywhere in the YouTube API I see reference to one option privacyStatus that can be public, private, or unlisted. Finally found this solution after much googling about the YouTube API which revealed the yt:accessControl action="list" permission="denied" in the video XML resource, and browsing the youtube_it code that constructs the XML.

At the very least, this is now documented somewhere for someone else to find it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant