Skip to content

Commit 04662a7

Browse files
authored
Fix upload_video URI error (#448)
1 parent 05a0415 commit 04662a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/yt/models/account.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def avatar_url
7474
# @option params [Boolean] :self_declared_made_for_kids The video’s made for kids self-declaration.
7575
# @return [Yt::Models::Video] the newly uploaded video.
7676
def upload_video(path_or_url, params = {})
77-
file = URI.parse(path_or_url).open
77+
file = URI.open(path_or_url)
7878
session = resumable_sessions.insert file.size, upload_body(params)
7979

8080
session.update(body: file) do |data|

0 commit comments

Comments
 (0)