From 5e46e3cb418075969491583f546a388381a2f404 Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 11 Jan 2023 20:51:08 -0600 Subject: downloads are now faster and more stable --- comedyGenerator | 9 +-------- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3