diff options
author | msglm <msglm@techchud.xyz> | 2025-08-17 19:53:51 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2025-08-17 19:53:51 -0500 |
commit | d9660442118e20413adc0d1ab4974bbf61037126 (patch) | |
tree | 6cb59ae9a4c535ba4a7f5f1aa57a4ff978617348 | |
parent | d27b010b78107d801ec24ec8774f99134826a323 (diff) | |
download | comedyGenerator-d9660442118e20413adc0d1ab4974bbf61037126.tar.gz comedyGenerator-d9660442118e20413adc0d1ab4974bbf61037126.tar.bz2 comedyGenerator-d9660442118e20413adc0d1ab4974bbf61037126.zip |
quotes no longer appear in names to prevent embed failures
-rwxr-xr-x | comedyGenerator | 4 |
1 files 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: |