bootstrap.py 243 B

12345678910111213141516
  1. import time
  2. from mpd import MPDClient
  3. time.sleep(10)
  4. client = MPDClient()
  5. client.timeout = 60
  6. client.connect("localhost", 6600)
  7. client.clear()
  8. client.setvol(50)
  9. client.repeat(1)
  10. client.single(1)
  11. client.load("internetradio")
  12. client.play(0)