Matching may fail of MPC is down
This commit is contained in:
parent
7541c8d1b2
commit
c634329d9b
@ -56,6 +56,8 @@ class MPCHCPlayer(object):
|
||||
|
||||
def cbRequest(status, headers, body):
|
||||
m = RE_MPC_STATUS.match(body)
|
||||
if not m:
|
||||
return
|
||||
fileName, playerStatus, currentTime = m.group(1), m.group(2), m.group(3)
|
||||
if(propertyName == "Paused"):
|
||||
self.manager.update_player_paused(True if playerStatus=="Paused" else False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user