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):
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