Sha256: 9a45c39806e76b9b2ab7ad68bea7eb36bbf6d2fdb43767f86a687f5aedb373b5

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift(File.join(__dir__, '..', 'lib'))

#########
require 'yt_dlp'

YtDlp.configure do |config|
  # config.executable_path = 'path/to/yt-dlp'
  config.logger = Logger.new($stderr)
end

url = 'https://www.youtube.com/watch?v=jM8dCGIm6yc'

# See https://github.com/yt-dlp/yt-dlp for the list of options
video = YtDlp::Video.new url, output: 'test.mp4'

video.download
#########

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yt_dlp-0.2.0 examples/run.rb