Skip to content

v1.5.0 - Add async command support

Latest

Choose a tag to compare

@iwalton3 iwalton3 released this 17 Oct 03:17

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 raises RuntimeError: cannot join current thread.
  • A command() that is waiting for a reply when the connection to MPV closes now raises BrokenPipeError right away, instead of waiting out the 120 second timeout.
  • If quit_callback raises, the MPV object still terminates. Previously the event thread was left running after MPV had gone.
  • A reply with an unknown request_id no 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 and quit_callback fired while MPV was still running.
  • A callback that raises SystemExit still 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.