Include video id in default filename format

Update default filename_format to append the video id as _[%(id)s] before the extension, improving uniqueness of generated filenames and preventing collisions when multiple videos share the same title and resolution.
This commit is contained in:
oop7
2026-04-19 18:11:19 +02:00
parent 00fc685e88
commit a51d8092a8
+1 -1
View File
@@ -95,7 +95,7 @@ class ConfigManager:
"force_audio_format": False, "force_audio_format": False,
"preferred_audio_format": "best", "preferred_audio_format": "best",
"audio_normalization": False, "audio_normalization": False,
"filename_format": "%(title)s_%(resolution)s.%(ext)s", "filename_format": "%(title)s_%(resolution)s_[%(id)s].%(ext)s",
"cached_versions": { "cached_versions": {
"ytdlp": {"version": None, "path": None, "last_check": 0, "path_mtime": 0}, "ytdlp": {"version": None, "path": None, "last_check": 0, "path_mtime": 0},
"ffmpeg": {"version": None, "path": None, "last_check": 0, "path_mtime": 0}, "ffmpeg": {"version": None, "path": None, "last_check": 0, "path_mtime": 0},