|
@@ -2,11 +2,15 @@ import time
|
|
from mpd import MPDClient
|
|
from mpd import MPDClient
|
|
|
|
|
|
|
|
|
|
|
|
+time.sleep(10)
|
|
client = MPDClient()
|
|
client = MPDClient()
|
|
client.timeout = 60
|
|
client.timeout = 60
|
|
client.connect("localhost", 6600)
|
|
client.connect("localhost", 6600)
|
|
|
|
|
|
client.clear()
|
|
client.clear()
|
|
|
|
+client.setvol(50)
|
|
|
|
+client.repeat(1)
|
|
|
|
+client.single(1)
|
|
|
|
+
|
|
client.load("internetradio")
|
|
client.load("internetradio")
|
|
-client.setvol(60)
|
|
|
|
client.play(0)
|
|
client.play(0)
|