8181# 0.8.9a don't report a spurious error due to missing collection
8282# 0.8.9b change one blogger to plogger since there's no bar in that context
8383# 0.8.9c use sanitize_filename on illegal names and actually use that name
84+ # 0.8.9d add JUNK reason to filename for visibility outside superchat
8485
8586SCRIPT_NAME = Path (__file__ ).stem
8687
@@ -642,7 +643,7 @@ def process_the_thing(params):
642643
643644 if not KEEP_JUNK :
644645 if local_file .find ('.del' ) > 0 :
645- superchat (f"deleting { local_file } " , 'info' , 'a' )
646+ plogger (f"deleting junk file { local_file } " , 'info' , 'a' )
646647 os .remove (local_file )
647648
648649 if ADD_SOURCE_EXIF_COMMENT :
@@ -1061,7 +1062,7 @@ def rename_by_type(target):
10611062 # check if string present or not
10621063 if '404 Not Found' in content :
10631064 logger ('Contains 404, deleting' , 'info' , 'a' )
1064- extension = ".del"
1065+ extension = ".NOT_FOUND. del"
10651066 else :
10661067 logger ('Cannot guess file type; using txt' , 'info' , 'a' )
10671068 extension = ".txt"
@@ -1077,10 +1078,10 @@ def rename_by_type(target):
10771078
10781079 if not RETAIN_KOMETA_OVERLAID_IMAGES and kometa_overlay :
10791080 logger (f"Marking as JUNK: Kometa-overlaid image: { target } " , 'info' , 'a' )
1080- extension = ".del"
1081+ extension = ".kometa-overlay. del"
10811082 if not RETAIN_TCM_OVERLAID_IMAGES and tcm_overlay :
10821083 logger (f"Marking as JUNK: TCM-overlaid image: { target } " , 'info' , 'a' )
1083- extension = ".del"
1084+ extension = ".tcm-overlay. del"
10841085
10851086 new_name = p .with_suffix (extension )
10861087
0 commit comments