From a51d8092a82b98e31613286773f218e97b4dbc22 Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Sun, 19 Apr 2026 18:11:19 +0200 Subject: [PATCH] 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. --- ytsage/utils/ytsage_config_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytsage/utils/ytsage_config_manager.py b/ytsage/utils/ytsage_config_manager.py index e218347..fcbe92f 100644 --- a/ytsage/utils/ytsage_config_manager.py +++ b/ytsage/utils/ytsage_config_manager.py @@ -95,7 +95,7 @@ class ConfigManager: "force_audio_format": False, "preferred_audio_format": "best", "audio_normalization": False, - "filename_format": "%(title)s_%(resolution)s.%(ext)s", + "filename_format": "%(title)s_%(resolution)s_[%(id)s].%(ext)s", "cached_versions": { "ytdlp": {"version": None, "path": None, "last_check": 0, "path_mtime": 0}, "ffmpeg": {"version": None, "path": None, "last_check": 0, "path_mtime": 0},