Update piplayer4.py
This commit is contained in:
@@ -140,10 +140,14 @@ try:
|
|||||||
if (qr_code.startswith("/")):
|
if (qr_code.startswith("/")):
|
||||||
qr_code = qr_code[1:]
|
qr_code = qr_code[1:]
|
||||||
full_path = MUSIC_BASE_DIRECTORY + qr_code
|
full_path = MUSIC_BASE_DIRECTORY + qr_code
|
||||||
|
logging.info("full_path: " + full_path)
|
||||||
socketIO.emit('addToQueue', {'uri':full_path})
|
socketIO.emit('addToQueue', {'uri':full_path})
|
||||||
else:
|
else:
|
||||||
socketIO.emit('addToQueue', {'service':'webradio','uri':qr_code})
|
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')
|
socketIO.emit('play')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user