Partially bypass age-gate

pull/3/head
Omar Roth 7 years ago
parent 3a546d3030
commit 2fcdb7f6ec

@ -88,7 +88,11 @@ def fetch_video(id, client)
info = HTTP::Params.parse(info) info = HTTP::Params.parse(info)
if info["reason"]? if info["reason"]?
raise info["reason"] info = client.get("/get_video_info?video_id=#{id}&ps=default&eurl=&gl=US&hl=en").body
info = HTTP::Params.parse(info)
if info["reason"]?
raise info["reason"]
end
end end
title = info["title"] title = info["title"]

Loading…
Cancel
Save