Update debug mode
This commit is contained in:
11
core.py
Executable file → Normal file
11
core.py
Executable file → Normal 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user