From 19a1141af3f1aa52c706e402af734797d5d929ff Mon Sep 17 00:00:00 2001 From: Heinrich 'Henrik' Langos Date: Mon, 16 Jan 2023 11:33:12 +0000 Subject: preserve-video-filename (#49) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should fix issue #40 I have not made the `allowed_characters` configurable yet nor the `replacement_character`. Mostly because I couldn't decide if I should define those "globally" on a server basis, or on the library nodes. Feel free to modify, extend, rip apart. 😁 Reviewed-on: https://git.mills.io/prologic/tube/pulls/49 Co-authored-by: Heinrich 'Henrik' Langos Co-committed-by: Heinrich 'Henrik' Langos --- config.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.json') diff --git a/config.json b/config.json index eb43aac..bb764f4 100644 --- a/config.json +++ b/config.json @@ -2,7 +2,8 @@ "library": [ { "path": "videos", - "prefix": "" + "prefix": "", + "preserve_upload_filename": false } ], "server": { @@ -10,6 +11,7 @@ "port": 8000, "store_path": "tube.db", "upload_path": "uploads", + "preserve_upload_filename": false, "max_upload_size": 104857600 }, "thumbnailer": { -- cgit v1.2.3