add a sleep
This commit is contained in:
parent
ded1d477f4
commit
0ebe9b2317
@ -5,4 +5,4 @@ ytmusic:My Likes:playlist:LM
|
||||
ytmusic:Ian Brown Music Of The Spheres:album:MPREb_qGv8CDJUptJ
|
||||
ytmusic:George Michael Twenty Five:playlist:PLQs-26BNq1fQsL4yIMeTBhL3Q16EEDnyU
|
||||
ytmusic:Dr Dre 2001:album:MPREb_6EiilRp9nkg
|
||||
ytmusic:Snoop Dogg Doggystyle:album:MPREb_0d9vS8CDlkf
|
||||
ytmusic:Snoop Dogg Doggystyle:album:MPREb_ajgAfvebdsT
|
3
main.py
3
main.py
@ -1,6 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import time
|
||||
from dotenv import load_dotenv
|
||||
from lib.mqtt import create_client, update_disc, control_player, create_config, check_current_disc
|
||||
|
||||
@ -40,6 +40,7 @@ if len(sys.argv) > 1:
|
||||
else:
|
||||
# Pass the parsed data to the update_disc function
|
||||
control_player(client, "PLAY")
|
||||
time.sleep(1)
|
||||
update_disc(client, disc_data)
|
||||
else:
|
||||
if input_str == "EJECT":
|
||||
|
Loading…
x
Reference in New Issue
Block a user