mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Invert title & video ID in downloaded file name
Fixes a regression of #2922 Issue reported by email
This commit is contained in:
parent
b1128c17f1
commit
32be373552
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ module Invidious::Routes::Watch
|
||||||
download_widget = JSON.parse(selection)
|
download_widget = JSON.parse(selection)
|
||||||
|
|
||||||
extension = download_widget["ext"].as_s
|
extension = download_widget["ext"].as_s
|
||||||
filename = "#{video_id}-#{title}.#{extension}"
|
filename = "#{title}-#{video_id}.#{extension}"
|
||||||
|
|
||||||
# Delete the now useless URL parameters
|
# Delete the now useless URL parameters
|
||||||
env.params.body.delete("id")
|
env.params.body.delete("id")
|
||||||
|
|
Loading…
Reference in a new issue