From d9660442118e20413adc0d1ab4974bbf61037126 Mon Sep 17 00:00:00 2001 From: msglm Date: Sun, 17 Aug 2025 19:53:51 -0500 Subject: quotes no longer appear in names to prevent embed failures --- comedyGenerator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedyGenerator b/comedyGenerator index cd0bc00..19392e0 100755 --- a/comedyGenerator +++ b/comedyGenerator @@ -217,6 +217,7 @@ for tags in args.tags: if args.verbose: print("shortening name because its too long") name = name[0:200] + name = name.replace('"', "") outputPath = args.output + tags + " - " + name + "." + urlsplit[len(urlsplit)-1] if args.verbose: print("name read as: " + name) @@ -224,8 +225,7 @@ for tags in args.tags: print(name + " already exists!") else: print("saving " + video + " as " + name) - for tries in range(100): - urllib.request.urlretrieve(video, outputPath) + urllib.request.urlretrieve(video, outputPath) if args.jobs > 1 and args.noDownload == False: pool = Pool(args.jobs) for video in videos: -- cgit v1.2.3