Replace mpv "idle" property with "end-file" event

This commit is contained in:
kelciour 2020-06-26 21:54:12 +03:00
parent 610f9eb236
commit 422e313c16

View File

@ -360,8 +360,8 @@ class MpvManager(MPV, SoundOrVideoPlayer):
def seek_relative(self, secs: int) -> None:
self.command("seek", secs, "relative")
def on_property_idle_active(self, val) -> None:
if val and self._on_done:
def on_end_file(self) -> None:
if self._on_done:
self._on_done()
def shutdown(self) -> None: