Partially bypass age-gate

このコミットが含まれているのは:
Omar Roth 2018-02-02 22:04:34 -06:00
コミット 2fcdb7f6ec
1個のファイルの変更5行の追加1行の削除

ファイルの表示

@ -88,7 +88,11 @@ def fetch_video(id, client)
info = HTTP::Params.parse(info)
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
title = info["title"]