diff options
author | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:07 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:07 -0600 |
commit | a97a5da330b5aacb9e0d19e380ccdabbafa0adab (patch) | |
tree | 97d4cef294ccf034891979808d225c0be4bae7f2 | |
parent | 670479f28471d9ad782fdff81034f89ca02ab0d8 (diff) | |
download | comedyGenerator-a97a5da330b5aacb9e0d19e380ccdabbafa0adab.tar.gz comedyGenerator-a97a5da330b5aacb9e0d19e380ccdabbafa0adab.tar.bz2 comedyGenerator-a97a5da330b5aacb9e0d19e380ccdabbafa0adab.zip |
fixed bug where videos kept repeatedly downloading
-rwxr-xr-x | comedyGenerator | 5 |
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))) |