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.
This commit is contained in:
losttra8n 2021-07-07 12:56:55 +02:00
parent 545577978a
commit 46e68fc966

View File

@ -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)