mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-10 02:08:23 +00:00
Merge pull request #2684 from iv-org/SamantazFox-patch-2
Decode title from download widget
This commit is contained in:
commit
e5557b515e
@ -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 New Issue
Block a user