Reset av_player.current_player after mpv restart

This commit is contained in:
kelciour 2020-08-21 02:17:21 +03:00
parent 80c7809d08
commit 580e561805

View file

@ -335,6 +335,7 @@ class MpvManager(MPV, SoundOrVideoPlayer):
super().__init__(window_id=None, debug=False)
def on_init(self) -> None:
self.on_end_file()
try:
self.command("keybind", "q", "stop")
self.command("keybind", "Q", "stop")