module YoutubeDL
Constants
- VERSION
Public Class Methods
download(url, **options)
click to toggle source
# File lib/youtube_dl.rb, line 5 def self.download(url, **options) Runner.new(Command.new(url, **options)) end
Public Instance Methods
complete?()
click to toggle source
# File lib/youtube_dl/state.rb, line 19 def complete? destination&.exist? && (info || info_json&.exist?) end
load_and_delete_info_json()
click to toggle source
# File lib/youtube_dl/state.rb, line 23 def load_and_delete_info_json self.info = JSON.parse(info_json.read()) info_json.unlink() end