|
|
|
@ -122,11 +122,10 @@ def preprocess_work(process_src, process_dst, process_width, process_height, pre
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
existing_caption = None
|
|
|
|
existing_caption = None
|
|
|
|
|
|
|
|
existing_caption_filename = os.path.splitext(filename)[0] + '.txt'
|
|
|
|
try:
|
|
|
|
if os.path.exists(existing_caption_filename):
|
|
|
|
existing_caption = open(os.path.splitext(filename)[0] + '.txt', 'r').read()
|
|
|
|
with open(existing_caption_filename, 'r', encoding="utf8") as file:
|
|
|
|
except Exception as e:
|
|
|
|
existing_caption = file.read()
|
|
|
|
print(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if shared.state.interrupted:
|
|
|
|
if shared.state.interrupted:
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|