mirror of
https://github.com/iv-org/invidious.git
synced 2026-07-07 06:06:48 -05:00
Merge 8c7411544411312ff5c15f1ba6d7ee32ed352b6a into c435dc1204970bcca06bcdcfb116c22092be22fd
This commit is contained in:
commit
dc4df9bd1d
@ -322,6 +322,9 @@ module Invidious::Routes::Watch
|
||||
env.params.query["title"] = filename
|
||||
env.params.query["label"] = URI.decode_www_form(label.as_s)
|
||||
|
||||
# Set content disposition header to force download
|
||||
env.response.headers["Content-Disposition"] = "attachment; filename=\"#{filename}\""
|
||||
|
||||
return Invidious::Routes::API::V1::Videos.captions(env)
|
||||
elsif itag = download_widget["itag"]?.try &.as_i.to_s
|
||||
# URL params specific to /latest_version
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user