mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Partially bypass age-gate
This commit is contained in:
parent
3a546d3030
commit
2fcdb7f6ec
1 changed files with 5 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue