new variable for playlist url

This commit is contained in:
Emi
2025-07-07 17:46:03 -03:00
parent d16d80f04b
commit 1c6a19d015

View File

@@ -1,9 +1,11 @@
import pyautogui as pgui import pyautogui as pgui
import time import time
# import keyboard as kb import keyboard as kb
import sys import sys
playlist_url = 'https://www.youtube.com/playlist?list=WL'
half_left = ( half_left = (
0, 0,
0, 0,
@@ -94,7 +96,7 @@ else:
pgui.hotkey('ctrl', 't') pgui.hotkey('ctrl', 't')
pgui.write('https://www.youtube.com/playlist?list=WL') pgui.write(playlist_url)
time.sleep(0.05) time.sleep(0.05)
pgui.press("enter") pgui.press("enter")
@@ -105,14 +107,14 @@ if __name__ == '__main__':
counter = 0 counter = 0
while True: while True:
# if kb.is_pressed('q'): if kb.is_pressed('q'):
# print(':(') print(':(')
# break break
if counter > 0 and (counter % 90) == 0: if counter > 0 and (counter % 90) == 0:
pgui.hotkey('ctrl', 'w') pgui.hotkey('ctrl', 'w')
pgui.hotkey('ctrl', 't') pgui.hotkey('ctrl', 't')
pgui.write('https://www.youtube.com/playlist?list=WL') pgui.write(playlist_url)
pgui.press("enter") pgui.press("enter")
time.sleep(8) time.sleep(8)