From 6178e204ec5c2bc253c9c9f446dda657c88b2188 Mon Sep 17 00:00:00 2001 From: Victor Hall Date: Sat, 12 Nov 2022 16:45:30 -0500 Subject: [PATCH] strip slashes from caption to avoid filename issues on output --- scripts/auto_caption.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/auto_caption.py b/scripts/auto_caption.py index 9b29c34..40eb4ca 100644 --- a/scripts/auto_caption.py +++ b/scripts/auto_caption.py @@ -150,6 +150,9 @@ async def main(opt): caption = captions[0] + # clean up caption + caption = caption.replace("/", "").replace("\\", "") + input_file.seek(0) data = input_file.read() input_file.close()