diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-13 16:09:14 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-13 16:09:14 -0500 |
| commit | d4ee786cab3ee2e40804f90dca35007cbd850784 (patch) | |
| tree | 0f039d83b5bf4dd3be8100e1495e87e1da33248d /src/invidious.cr | |
| parent | a54668688b573a11dff8d92af722c3d049e09612 (diff) | |
| download | invidious-d4ee786cab3ee2e40804f90dca35007cbd850784.tar.gz invidious-d4ee786cab3ee2e40804f90dca35007cbd850784.tar.bz2 invidious-d4ee786cab3ee2e40804f90dca35007cbd850784.zip | |
Add support for comments under controversial videos
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 5220b387..51e4d9d4 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1803,7 +1803,7 @@ get "/api/v1/comments/:id" do |env| if source == "youtube" client = make_client(YT_URL) headers = HTTP::Headers.new - html = client.get("/watch?v=#{id}&disable_polymer=1") + html = client.get("/watch?v=#{id}&bpctr=#{Time.new.epoch + 2000}&disable_polymer=1") headers["cookie"] = html.cookies.add_request_headers(headers)["cookie"] headers["content-type"] = "application/x-www-form-urlencoded" |
