Strip domain from caption URLs

pull/925/head
Omar Roth 2019-12-01 17:52:39 -05:00
rodzic 04d56420d1
commit 062867a38d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B8254FB7EC3D37F2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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