1
0
mirror of https://github.com/iv-org/invidious.git synced 2025-04-21 16:06:32 -04:00

Partially bypass age-gate

This commit is contained in:
Omar Roth 2018-02-02 22:04:34 -06:00
parent 3a546d3030
commit 2fcdb7f6ec

@ -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"]