summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
commit5e46e3cb418075969491583f546a388381a2f404 (patch)
tree42f470267c91b03da8fb903ac776063548f3b76a
parente6cd4300cf8346adf884a356c7ed9aac0f52b089 (diff)
downloadcomedyGenerator-5e46e3cb418075969491583f546a388381a2f404.tar.gz
comedyGenerator-5e46e3cb418075969491583f546a388381a2f404.tar.bz2
comedyGenerator-5e46e3cb418075969491583f546a388381a2f404.zip
downloads are now faster and more stable
-rwxr-xr-xcomedyGenerator9
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: