strip slashes from caption to avoid filename issues on output

This commit is contained in:
Victor Hall 2022-11-12 16:45:30 -05:00
parent cecbda97ea
commit 6178e204ec
1 changed files with 3 additions and 0 deletions

View File

@ -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()