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