From 988b22dcb712f0c5ceeb962d45c963a466e1f29f Mon Sep 17 00:00:00 2001 From: yoshiko2 Date: Mon, 8 Nov 2021 22:14:12 +0800 Subject: [PATCH] Update debug mode --- core.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) mode change 100755 => 100644 core.py diff --git a/core.py b/core.py old mode 100755 new mode 100644 index ebe47b7..0e48b3e --- a/core.py +++ b/core.py @@ -549,16 +549,19 @@ def get_part(filepath): def debug_print(data: json): try: - print("[+] ---Debug info---") + print("[+] ------- DEBUG INFO -------") for i, v in data.items(): if i == 'outline': - print('[+] -', i, ' :', len(v), 'characters') + print('[+] -', "%-14s" % i, ':', len(v), 'characters') continue if i == 'actor_photo' or i == 'year': continue - print('[+] -', "%-11s" % i, ':', v) + if i == 'extrafanart': + print('[+] -', "%-14s" % i, ':', len(v), 'links') + continue + print('[+] -', "%-14s" % i, ':', v) - print("[+] ---Debug info---") + print("[+] ------- DEBUG INFO -------") except: pass