Fixed episode changing bug in mpc
This commit is contained in:
parent
ed9f0462ac
commit
957f5498a4
@ -103,7 +103,7 @@ class MPCHCAPIPlayer(BasePlayer):
|
||||
def __getPosition(self):
|
||||
self.__positionUpdate.clear()
|
||||
self._mpcApi.askForCurrentPosition()
|
||||
self.__positionUpdate.wait()
|
||||
self.__positionUpdate.wait(0.2)
|
||||
return self._mpcApi.lastFilePosition
|
||||
|
||||
def askForStatus(self):
|
||||
@ -125,7 +125,7 @@ class MPCHCAPIPlayer(BasePlayer):
|
||||
|
||||
def __forcePause(self, paused):
|
||||
i = 0
|
||||
while(paused <> self._mpcApi.isPaused() and i < 15):
|
||||
while(paused <> self._mpcApi.isPaused() and i < 35):
|
||||
i += 1
|
||||
self.setPaused(paused)
|
||||
time.sleep(0.1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user