From 46e68fc9660ec9a3f6ceee9784bb9017c0b2720c Mon Sep 17 00:00:00 2001 From: losttra8n Date: Wed, 7 Jul 2021 12:56:55 +0200 Subject: [PATCH] a bug fix for --no-filenames option to work! (for images) i was trying to '-nf' option, then image captions were not consistent! i.e. they were still there with '-nf' option. so investigated. --- distribusi/distribusi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py index 198e58d..61239cb 100644 --- a/distribusi/distribusi.py +++ b/distribusi/distribusi.py @@ -166,6 +166,7 @@ def distribusify(args, directory): # noqa a = thumbnail(full_path, name, args) if args.no_filenames: caption = "" + a = FILE_TYPES[type_].format(name, caption) if args.captions: caption = caption(full_path) a = FILE_TYPES[type_].format(name, caption)