Ensure uploads by the YouTube sample are unlisted (#539)

This commit is contained in:
Hamada Takayuki 2017-02-14 05:11:15 +09:00 committed by Sai Cheemalapati
parent 27f13663bf
commit 2ea7f12106
1 changed files with 4 additions and 1 deletions

View File

@ -35,9 +35,12 @@ module Samples
metadata = {
snippet: {
title: options[:title] || file
},
status: {
privacy_status: 'unlisted'
}
}
result = youtube.insert_video('snippet', metadata, upload_source: file)
result = youtube.insert_video('snippet,status', metadata, upload_source: file)
say "Upload complete"
end
end