summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-04-13 20:07:25 -0500
committermsglm <msglm@techchud.xyz>2023-04-13 20:07:25 -0500
commit5cdc14e3ca9fe3b0d38f8e25baa3818172ddccf3 (patch)
tree14a414312f6e537054c327a707dcb6832c8371a5
parent65b7abadb42e8b9681b978cdda52f6d650027c86 (diff)
downloadcomedyGenerator-5cdc14e3ca9fe3b0d38f8e25baa3818172ddccf3.tar.gz
comedyGenerator-5cdc14e3ca9fe3b0d38f8e25baa3818172ddccf3.tar.bz2
comedyGenerator-5cdc14e3ca9fe3b0d38f8e25baa3818172ddccf3.zip
prevent slashes from appearing in file name
-rwxr-xr-xcomedyGenerator1
1 files changed, 1 insertions, 0 deletions
diff --git a/comedyGenerator b/comedyGenerator
index 763ea6f..1c90f84 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -222,6 +222,7 @@ for tags in args.tags:
print("shortening name because its too long")
name = name[0:200]
name = name.replace('"', "")
+ name = name.replace('/', "")
outputPath = args.output + tags + " - " + name + "." + urlsplit[len(urlsplit)-1]
if args.verbose:
print("name read as: " + name)