From 88b062abeeec2aa6fc0ea573cf6fe4ade22a3b5d Mon Sep 17 00:00:00 2001 From: G <52905881+giga-a@users.noreply.github.com> Date: Mon, 1 Mar 2021 19:08:24 -0800 Subject: [PATCH] [auto-f] added metadata and extraction features to the python CLI version --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index a099548..4305fc4 100644 --- a/app.py +++ b/app.py @@ -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]: