From 32be37355248c1e4723643b513c6f1175e88dc36 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Thu, 19 May 2022 23:16:51 +0200 Subject: [PATCH] Invert title & video ID in downloaded file name Fixes a regression of #2922 Issue reported by email --- src/invidious/routes/watch.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/routes/watch.cr b/src/invidious/routes/watch.cr index 75475430..7280de4f 100644 --- a/src/invidious/routes/watch.cr +++ b/src/invidious/routes/watch.cr @@ -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")