piplayer3.py production version

This commit is contained in:
2017-10-31 18:12:53 +01:00
parent e2fcb44601
commit 37a4f02266
+2 -2
View File
@@ -171,8 +171,8 @@ try:
logging.info("Trying to connect to the server...") logging.info("Trying to connect to the server...")
response = requests.post(MOPIDY_RPC_URL, data='{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.clear"}', timeout=REQUEST_TIMEOUT) response = requests.post(MOPIDY_RPC_URL, data='{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.clear"}', timeout=REQUEST_TIMEOUT)
except: except:
logging.debug("Connection refused by the server, wait 5 seconds") logging.debug("Timeout while connecting to the server")
time.sleep(5) time.sleep(1)
continue continue
play_sound(SOUND_OK) play_sound(SOUND_OK)