From 422e313c16eb22a3f75280ff6dd0588e0d98c584 Mon Sep 17 00:00:00 2001 From: kelciour Date: Fri, 26 Jun 2020 21:54:12 +0300 Subject: [PATCH] Replace mpv "idle" property with "end-file" event --- qt/aqt/sound.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index dca5b0c1e..f1e096a09 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -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: