mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 05:27:21 +00:00
Partially bypass age-gate
This commit is contained in:
parent
3a546d3030
commit
2fcdb7f6ec
@ -87,9 +87,13 @@ def fetch_video(id, client)
|
||||
html = XML.parse_html(html)
|
||||
info = HTTP::Params.parse(info)
|
||||
|
||||
if 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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user