[auto-f] added metadata and extraction features to the python CLI version

This commit is contained in:
G
2021-03-01 19:08:24 -08:00
committed by GitHub
parent 6e9108e373
commit 88b062abee
+2 -2
View File
@@ -135,8 +135,8 @@ class CustomHandler(Handler):
for idx, _item in enumerate(value):
empty_string = ""
for _item_key, _item_value in _item.items():
if self.argv.trim and _item_key == "content":
empty_string += "{}: {} ".format(colored(_item_key, 'blue'),colored(_item_value[:50]+"...", 'yellow'))
if self.argv.trim and _item_key == "content" and len(_item_value) > 50:
empty_string += "{}: {} ".format(colored(_item_key, 'blue'),colored(_item_value[:50]+"..", 'yellow'))
else:
empty_string += "{}: {} ".format(colored(_item_key, 'blue'),colored(_item_value, 'yellow'))
if _item == value[0]: