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 | d27b010b78107d801ec24ec8774f99134826a323 (patch) | |
tree | 42f470267c91b03da8fb903ac776063548f3b76a | |
parent | 51e3c8b2e7c6b5cfc57551efdd284bc63569df85 (diff) | |
download | comedyGenerator-d27b010b78107d801ec24ec8774f99134826a323.tar.gz comedyGenerator-d27b010b78107d801ec24ec8774f99134826a323.tar.bz2 comedyGenerator-d27b010b78107d801ec24ec8774f99134826a323.zip |
downloads are now faster and more stable
-rwxr-xr-x | comedyGenerator | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/comedyGenerator b/comedyGenerator index 1301259..cd0bc00 100755 --- a/comedyGenerator +++ b/comedyGenerator @@ -225,14 +225,7 @@ for tags in args.tags: else: print("saving " + video + " as " + name) for tries in range(100): - try: - urllib.request.urlretrieve(video, outputPath) - except: - if tries < 100 - 1: - print("Rate Limited! Sleeping for " + str(tries*1.5) + " seconds!") - time.sleep(tries*1.5) - continue - break + urllib.request.urlretrieve(video, outputPath) if args.jobs > 1 and args.noDownload == False: pool = Pool(args.jobs) for video in videos: |