summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)