We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05a0415 commit 04662a7Copy full SHA for 04662a7
lib/yt/models/account.rb
@@ -74,7 +74,7 @@ def avatar_url
74
# @option params [Boolean] :self_declared_made_for_kids The video’s made for kids self-declaration.
75
# @return [Yt::Models::Video] the newly uploaded video.
76
def upload_video(path_or_url, params = {})
77
- file = URI.parse(path_or_url).open
+ file = URI.open(path_or_url)
78
session = resumable_sessions.insert file.size, upload_body(params)
79
80
session.update(body: file) do |data|
0 commit comments