diff options
-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: |