Post 20210613 getextet
This commit is contained in:
+4
-4
@@ -308,17 +308,17 @@ def update_captions(yml, lines):
|
||||
data = yml['captions']
|
||||
|
||||
lines = clear_captions(lines)
|
||||
# log(f"update_captions lines={lines}")
|
||||
log(f"update_captions lines={lines}")
|
||||
|
||||
if data is None:
|
||||
output = ""
|
||||
else:
|
||||
output = yaml.dump(data, Dumper=Dumper)
|
||||
|
||||
# log(f"update_captions output={output}")
|
||||
log(f"update_captions output={output}")
|
||||
lines = re.sub("\ncaptions:.*\n", f"\ncaptions:\n{output}", lines)
|
||||
|
||||
# log(f"update_captions {lines}")
|
||||
log(f"update_captions {lines}")
|
||||
return lines
|
||||
|
||||
|
||||
@@ -608,4 +608,4 @@ def exit_on_error(message):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parse_args()
|
||||
parse_args()
|
||||
|
||||
Reference in New Issue
Block a user