mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix #2670
Fixes "Download widget replaces spaces in filename with +" https://github.com/iv-org/invidious/issues/2670
This commit is contained in:
parent
c6e086c6ff
commit
7b9d26d688
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ module Invidious::Routes::VideoPlayback
|
||||||
download_widget = JSON.parse(env.params.query["download_widget"])
|
download_widget = JSON.parse(env.params.query["download_widget"])
|
||||||
|
|
||||||
id = download_widget["id"].as_s
|
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"]?
|
if label = download_widget["label"]?
|
||||||
return env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}"
|
return env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}"
|
||||||
|
|
Loading…
Reference in a new issue