summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2025-08-17 19:53:51 -0500
committermsglm <msglm@techchud.xyz>2025-08-17 19:53:51 -0500
commitcb88641d620990c345eb9b21d8fd267877eac673 (patch)
tree97d4cef294ccf034891979808d225c0be4bae7f2
parent11d6dd976cd5665ac4d81285dc625857741707e3 (diff)
downloadcomedyGenerator-cb88641d620990c345eb9b21d8fd267877eac673.tar.gz
comedyGenerator-cb88641d620990c345eb9b21d8fd267877eac673.tar.bz2
comedyGenerator-cb88641d620990c345eb9b21d8fd267877eac673.zip
fixed bug where videos kept repeatedly downloading
-rwxr-xr-xcomedyGenerator5
1 files changed, 3 insertions, 2 deletions
diff --git a/comedyGenerator b/comedyGenerator
index 7925367..3b0fb23 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -123,7 +123,7 @@ elif args.usingJavascript:
except:
if tries < 100 - 1:
print("Rate Limited! Sleeping for " + str(tries*1.5) + " seconds!")
- #time.sleep(tries*1.5)
+ time.sleep(tries*1.5)
continue
break
@@ -165,7 +165,8 @@ elif args.usingJavascript:
print("Rate Limited! Sleeping for " + str(tries*1.5) + " seconds!")
time.sleep(tries*1.5)
continue
- break
+ break
+ #urllib.request.urlretrieve(video.get_attribute("data-src"), '/home/' + os.environ['USER'] + '/Videos/unsorted/' + name)
elif args.debug:
print("URL is NOT a string, it is a " + str(type(URL)))