summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcomedyGenerator4
1 files changed, 1 insertions, 3 deletions
diff --git a/comedyGenerator b/comedyGenerator
index 48ed69f..1ba068e 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -105,9 +105,7 @@ elif args.usingJavascript:
epoch = epoch + 1
print("saving " + video.get_attribute("data-src") + " as " + str(epoch) + '.mp4')
urllib.request.urlretrieve(video.get_attribute("data-src"), '/home/' + os.environ['USER'] + '/Videos/unsorted/' + str(epoch) + '.mp4')
- driver.close()
-
-
+ driver.quit()
else:
print("Neither Javascript or HTML was given!")
sys.exit(1)