Jared 2 år sedan
förälder
incheckning
03f9b27774
1 ändrade filer med 0 tillägg och 72 borttagningar
  1. 0 72
      choozmo/watch_yt.py

+ 0 - 72
choozmo/watch_yt.py

@@ -108,78 +108,6 @@ class JParams(object):
         sys.exit()
         return
 
-
-    video = driver.find_element_by_id('movie_player')
-    video.send_keys(Keys.SPACE) #hits space
-    time.sleep(1)
-    video.click()               #mouse click
-
-    driver.execute_script('window.open("'+url+'","_blank");')
-    driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
-    time.sleep(3)
-
-    try:
-        driver.get(url)
-    except:
-        driver.quit()
-        sys.exit()
-        return
-
-    video = driver.find_element_by_id('movie_player')
-    video.send_keys(Keys.SPACE) #hits space
-    time.sleep(1)
-    video.click()               #mouse click
-
-
-    driver.execute_script('window.open("'+url+'","_blank");')
-    driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
-    time.sleep(3)
-
-    try:
-        driver.get(url)
-    except:
-        driver.quit()
-        sys.exit()
-        return
-
-    video = driver.find_element_by_id('movie_player')
-    video.send_keys(Keys.SPACE) #hits space
-    time.sleep(1)
-    video.click()               #mouse click
-
-    driver.execute_script('window.open("'+url+'","_blank");')
-    driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
-    time.sleep(3)
-
-    try:
-        driver.get(url)
-    except:
-        driver.quit()
-        sys.exit()
-        return
-
-
-    video = driver.find_element_by_id('movie_player')
-    video.send_keys(Keys.SPACE) #hits space
-    time.sleep(1)
-    video.click()               #mouse click
-
-    driver.execute_script('window.open("'+url+'","_blank");')
-    driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
-    time.sleep(3)
-
-    try:
-        driver.get(url)
-    except:
-        driver.quit()
-        sys.exit()
-        return
-
-    video = driver.find_element_by_id('movie_player')
-    video.send_keys(Keys.SPACE) #hits space
-    time.sleep(1)
-    video.click()               #mouse click
-
     time.sleep(35)
     driver.quit()
     sys.exit()