diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-12-01 17:52:39 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-12-01 17:52:39 -0500 |
| commit | 062867a38dc111fe981e2c65239b557191daa7fa (patch) | |
| tree | 16cfeed7fa7e9c5556ab6b3bebef6bc5cf989a3b | |
| parent | 04d56420d1e0aecf85dd7d4f51d3339b88b61caa (diff) | |
| download | invidious-062867a38dc111fe981e2c65239b557191daa7fa.tar.gz invidious-062867a38dc111fe981e2c65239b557191daa7fa.tar.bz2 invidious-062867a38dc111fe981e2c65239b557191daa7fa.zip | |
Strip domain from caption URLs
| -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 6499d569..df6ea3e8 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -3852,7 +3852,7 @@ get "/api/v1/captions/:id" do |env| caption = caption[0] end - url = "#{caption.baseUrl}&tlang=#{tlang}" + url = URI.parse("#{caption.baseUrl}&tlang=#{tlang}").full_path # Auto-generated captions often have cues that aren't aligned properly with the video, # as well as some other markup that makes it cumbersome, so we try to fix that here |
