From 412ef5ac7bba40343aa53973f0944c6212ff2795 Mon Sep 17 00:00:00 2001 From: ezn Date: Sun, 17 Nov 2024 16:21:40 +0000 Subject: [PATCH] cleanup removed loop_video() and return from the last block of wait_for_button_press --- p33_from31.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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