Sha256: e966b0f2f63fe28ba3d698c45b32a4c21d5ff7eeaa2913cea5a406abeba48bba

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=fzlT80jQ3lo'

# 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.1.1 examples/run.rb