summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2021-12-01 17:29:04 +0100
committerGitHub <noreply@github.com>2021-12-01 17:29:04 +0100
commite5557b515ecf73b6053563178273738e9cf2de60 (patch)
tree97842502e2041ca018b4c17600f49b18746cbbe0 /src
parentc6e086c6fff9699a32465da0ce5e4784c981e886 (diff)
parent7b9d26d68891fa4e9e65b1ef197e30938571daae (diff)
downloadinvidious-e5557b515ecf73b6053563178273738e9cf2de60.tar.gz
invidious-e5557b515ecf73b6053563178273738e9cf2de60.tar.bz2
invidious-e5557b515ecf73b6053563178273738e9cf2de60.zip
Merge pull request #2684 from iv-org/SamantazFox-patch-2
Decode title from download widget
Diffstat (limited to 'src')
-rw-r--r--src/invidious/routes/video_playback.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr
index 5c64f669..394b1592 100644
--- a/src/invidious/routes/video_playback.cr
+++ b/src/invidious/routes/video_playback.cr
@@ -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}"