Fixes "Download widget replaces spaces in filename with +"
https://github.com/iv-org/invidious/issues/2670
pull/2684/head
Samantaz Fox 3 years ago
parent c6e086c6ff
commit 7b9d26d688
No known key found for this signature in database
GPG Key ID: F42821059186176E

@ -240,7 +240,7 @@ module Invidious::Routes::VideoPlayback
download_widget = JSON.parse(env.params.query["download_widget"])
id = download_widget["id"].as_s
title = download_widget["title"].as_s
title = URI.decode_www_form(download_widget["title"].as_s)
if label = download_widget["label"]?
return env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}"

Loading…
Cancel
Save