Repository navigation
This version adds async command support. It also fixes several bugs:
- Calling
terminate()from a callback (an observer, event handler or key binding) no longer raisesRuntimeError: cannot join current thread. - A
command()that is waiting for a reply when the connection to MPV closes now raisesBrokenPipeErrorright away, instead of waiting out the 120 second timeout. - If
quit_callbackraises, the MPV object still terminates. Previously the event thread was left running after MPV had gone. - A reply with an unknown
request_idno longer crashes the reader thread. - When an exception is raised by
MPVInter's event callback, it is logged instead of ending the reader thread. Previously, any replies after it were lost andquit_callbackfired while MPV was still running. - A callback that raises
SystemExitstill ends the event thread, but now logs a warning. Previously observers, events and key bindings stopped arriving with no indication why. - A task whose
repr()raises can no longer end the event thread when its exception is logged.
The full test suites from Jellyfin MPV Shim are passing on this new version.