Update piplayer4.py

This commit is contained in:
2018-11-30 13:49:36 +00:00
parent 2b495dd488
commit 537c3ffca1
+4
View File
@@ -140,10 +140,14 @@ try:
if (qr_code.startswith("/")):
qr_code = qr_code[1:]
full_path = MUSIC_BASE_DIRECTORY + qr_code
logging.info("full_path: " + full_path)
socketIO.emit('addToQueue', {'uri':full_path})
else:
socketIO.emit('addToQueue', {'service':'webradio','uri':qr_code})
###########socketIO.wait()
#https://github.com/invisibleroads/socketIO-client/issues/145
#https://github.com/miguelgrinberg/Flask-SocketIO/issues/194
socketIO.emit('play')
else: