From d27b010b78107d801ec24ec8774f99134826a323 Mon Sep 17 00:00:00 2001 From: msglm Date: Sun, 17 Aug 2025 19:53:51 -0500 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