Implement an on-the-fly fix of dot-ending files (#185)

This commit is contained in:
KnugiHK
2026-01-18 23:03:49 +08:00
parent 9be210f34a
commit f8b959e1e1
3 changed files with 36 additions and 12 deletions

View File

@@ -294,6 +294,10 @@ def setup_argument_parser() -> ArgumentParser:
"--no-banner", dest="no_banner", default=False, action='store_true',
help="Do not show the banner"
)
misc_group.add_argument(
"--fix-dot-files", dest="fix_dot_files", default=False, action='store_true',
help="Fix files with a dot at the end of their name (allowing the outputs be stored in FAT filesystems)"
)
return parser
@@ -557,7 +561,7 @@ def process_messages(args, data: ChatCollection) -> None:
# Process media
message_handler.media(
db, data, args.media, args.filter_date,
filter_chat, args.filter_empty, args.separate_media
filter_chat, args.filter_empty, args.separate_media, args.fix_dot_files
)
# Process vcards