Hopefully fix MPC-HC CMD_NOWPLAYING spam bug
This commit is contained in:
parent
8076f90e04
commit
227b667eb3
@ -119,6 +119,8 @@ class MpcHcApi:
|
||||
|
||||
elif(cmd == self.CMD_NOWPLAYING):
|
||||
value = re.split(r'(?<!\\)\|', value)
|
||||
if self.filePath == value[3]:
|
||||
return
|
||||
self.filePath = value[3]
|
||||
self.filePlaying = value[3].split('\\').pop()
|
||||
self.fileDuration = float(value[4])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user