Reset av_player.current_player after mpv restart

This commit is contained in:
kelciour 2020-08-21 02:17:21 +03:00
parent c5996fa29b
commit 8cac607588

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")