Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/yt/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def avatar_url
# @option params [Boolean] :self_declared_made_for_kids The video’s made for kids self-declaration.
# @return [Yt::Models::Video] the newly uploaded video.
def upload_video(path_or_url, params = {})
file = URI.parse(path_or_url).open
file = URI.open(path_or_url)
session = resumable_sessions.insert file.size, upload_body(params)

session.update(body: file) do |data|
Expand Down