Update debug mode

This commit is contained in:
yoshiko2
2021-11-08 22:14:12 +08:00
parent 74390a2579
commit 988b22dcb7

11
core.py Executable file → Normal file
View File

@@ -549,16 +549,19 @@ def get_part(filepath):
def debug_print(data: json): def debug_print(data: json):
try: try:
print("[+] ---Debug info---") print("[+] ------- DEBUG INFO -------")
for i, v in data.items(): for i, v in data.items():
if i == 'outline': if i == 'outline':
print('[+] -', i, ' :', len(v), 'characters') print('[+] -', "%-14s" % i, ':', len(v), 'characters')
continue continue
if i == 'actor_photo' or i == 'year': if i == 'actor_photo' or i == 'year':
continue 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: except:
pass pass