mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-20 10:45:31 -05:00
Merge 8c74115444 into 994c25de2e
This commit is contained in:
commit
39462b0e54
1 changed files with 3 additions and 0 deletions
|
|
@ -330,6 +330,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…
Add table
Add a link
Reference in a new issue