Invert title & video ID in downloaded file name

Fixes a regression of #2922
Issue reported by email
This commit is contained in:
Samantaz Fox 2022-05-19 23:16:51 +02:00
parent b1128c17f1
commit 32be373552
No known key found for this signature in database
GPG Key ID: F42821059186176E

View File

@ -306,7 +306,7 @@ module Invidious::Routes::Watch
download_widget = JSON.parse(selection)
extension = download_widget["ext"].as_s
filename = "#{video_id}-#{title}.#{extension}"
filename = "#{title}-#{video_id}.#{extension}"
# Delete the now useless URL parameters
env.params.body.delete("id")