Skip to content
Open
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
4 changes: 2 additions & 2 deletions lib/ffmpeg/movie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class Movie

UNSUPPORTED_CODEC_PATTERN = /^Unsupported codec with id (\d+) for input stream (\d+)$/

def initialize(path)
def initialize(path, head_url: nil)
@path = path

if remote?
@head = head
@head = head(head_url || path)
unless @head.is_a?(Net::HTTPSuccess)
raise Errno::ENOENT, "the URL '#{path}' does not exist or is not available (response code: #{@head.code})"
end
Expand Down