diff options
author | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:08 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:08 -0600 |
commit | 5e46e3cb418075969491583f546a388381a2f404 (patch) | |
tree | 42f470267c91b03da8fb903ac776063548f3b76a | |
parent | e6cd4300cf8346adf884a356c7ed9aac0f52b089 (diff) | |
download | comedyGenerator-5e46e3cb418075969491583f546a388381a2f404.tar.gz comedyGenerator-5e46e3cb418075969491583f546a388381a2f404.tar.bz2 comedyGenerator-5e46e3cb418075969491583f546a388381a2f404.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: |