summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:07 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:07 -0600
commita97a5da330b5aacb9e0d19e380ccdabbafa0adab (patch)
tree97d4cef294ccf034891979808d225c0be4bae7f2
parent670479f28471d9ad782fdff81034f89ca02ab0d8 (diff)
downloadcomedyGenerator-a97a5da330b5aacb9e0d19e380ccdabbafa0adab.tar.gz
comedyGenerator-a97a5da330b5aacb9e0d19e380ccdabbafa0adab.tar.bz2
comedyGenerator-a97a5da330b5aacb9e0d19e380ccdabbafa0adab.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)))