-
Notifications
You must be signed in to change notification settings - Fork 95
Options and Features
Justin Roberson edited this page Sep 8, 2015
·
3 revisions
Get youtube-dl.rb's usable executable's version
YoutubeDL.binary_version # => "2015.09.03"
YoutubeDL.extractors
# => ["1tv",
"1up.com",
"220.ro",
"22tracks:genre",
"22tracks:track",
...
"YourUpload",
"youtube",
"youtube:channel",
"youtube:favorites",
"youtube:history",
"youtube:playlist",
"youtube:recommended",
"youtube:search",
"youtube:search:date",
"youtube:search_url",
"youtube:show",
"youtube:subscriptions",
"youtube:truncated_id",
"youtube:truncated_url",
"youtube:user",
"youtube:watchlater",
"Zapiks",
"ZDF",
"ZDFChannel",
"zingmp3:album",
"zingmp3:song"]
Returns the current browser's identification
YoutubeDL.user_agent
# => "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)"
The gem supports most of the options in youtube-dl. Just pass the options as a hash. These two do the same thing:
YoutubeDL.download "https://www.youtube.com/watch?v=f99njZJod2c", output: "NSP - If We Were Gay.mp4", format: 5, continue: false
$ youtube-dl -F 5 --output "NSP - If We Were Gay.mp4" --no-continue "https://www.youtube.com/watch?v=f99njZJod2c"