From f36ab6a55613b1ced7b414a8c16210943b422e16 Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 11 Jan 2023 20:51:08 -0600 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