summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
commite6cd4300cf8346adf884a356c7ed9aac0f52b089 (patch)
tree90d796e7672d509784c38cec4cf54d86b9bb5019
parent01b3fad35d505a31c1eb50c700cc9bdbbd47db91 (diff)
downloadcomedyGenerator-e6cd4300cf8346adf884a356c7ed9aac0f52b089.tar.gz
comedyGenerator-e6cd4300cf8346adf884a356c7ed9aac0f52b089.tar.bz2
comedyGenerator-e6cd4300cf8346adf884a356c7ed9aac0f52b089.zip
fixed but with overly long names
-rwxr-xr-xcomedyGenerator4
1 files changed, 4 insertions, 0 deletions
diff --git a/comedyGenerator b/comedyGenerator
index 65986d5..1301259 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -213,6 +213,10 @@ for tags in args.tags:
print("Now running for " + str(video))
urlsplit = video.split('.')
+ if len(name) > 200:
+ if args.verbose:
+ print("shortening name because its too long")
+ name = name[0:200]
outputPath = args.output + tags + " - " + name + "." + urlsplit[len(urlsplit)-1]
if args.verbose:
print("name read as: " + name)