Browse Source

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.
losttra8n-patch-1
losttra8n 3 years ago
parent
commit
46e68fc966
  1. 1
      distribusi/distribusi.py

1
distribusi/distribusi.py

@ -166,6 +166,7 @@ def distribusify(args, directory): # noqa
a = thumbnail(full_path, name, args) a = thumbnail(full_path, name, args)
if args.no_filenames: if args.no_filenames:
caption = "" caption = ""
a = FILE_TYPES[type_].format(name, caption)
if args.captions: if args.captions:
caption = caption(full_path) caption = caption(full_path)
a = FILE_TYPES[type_].format(name, caption) a = FILE_TYPES[type_].format(name, caption)

Loading…
Cancel
Save