diff --git a/p33_from31.py b/p33_from31.py index 3ac5be2..6332940 100644 --- a/p33_from31.py +++ b/p33_from31.py @@ -169,15 +169,12 @@ def wait_for_button_press(video_info): handle_video_chain(next_video_id) else: print("No next video available. Restarting from Video 1.") -######################### - #loop_video() # Restart from Video 1 print(f"Restarting service: {service_name}") subprocess.run(["sudo", "systemctl", "restart", service_name], c> restart_service(service_name) print(f"Service {service_name} restarted successfully.") exit() - return - + time.sleep(0.1) # Function to handle the video chain