mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
Add fix for controversial videos
This commit is contained in:
parent
a7d223a0cf
commit
731b837774
@ -98,7 +98,7 @@ end
|
|||||||
|
|
||||||
def fetch_video(id, client)
|
def fetch_video(id, client)
|
||||||
info = client.get("/get_video_info?video_id=#{id}&el=detailpage&ps=default&eurl=&gl=US&hl=en").body
|
info = client.get("/get_video_info?video_id=#{id}&el=detailpage&ps=default&eurl=&gl=US&hl=en").body
|
||||||
html = client.get("/watch?v=#{id}").body
|
html = client.get("/watch?v=#{id}&bpctr=#{Time.new.epoch + 2000}").body
|
||||||
|
|
||||||
html = XML.parse_html(html)
|
html = XML.parse_html(html)
|
||||||
info = HTTP::Params.parse(info)
|
info = HTTP::Params.parse(info)
|
||||||
|
Loading…
Reference in New Issue
Block a user