Skip to content

PyKodi 0.6.0

Latest

Choose a tag to compare

@olympia olympia released this 04 Dec 16:20
5764110

Changes in behaviour:

  • jsonrpc-base 2.3.0 and jsonrpc-websocket 4.1.0 or newer are required (#54, #55). With jsonrpc-websocket 4.1.0 a pending request fails at once when Kodi closes the websocket without a reply, before it waited for the timeout.
  • CannotConnectError takes its message from the jsonrpc-base error as it is, and is_error_response() is only true for a JSON-RPC error object coming from Kodi (#54).
  • play_pause(), play(), pause(), stop(), next_track(), previous_track() and media_seek() return False without sending the command when no player is active, and True once the command went out, like set_shuffle() (#58).
  • previous_track() seeks to the start only when Kodi says the player can seek, so it works now for a slideshow and for a stream that cannot seek (#61).
  • With an active player media_seek() raises ValueError for a negative, not finite or too large position, and it rounds the position to whole milliseconds (#62, #64).
  • get_albums() raises ValueError for album_id, and get_albums() and get_songs() raise it when more than one of the ID arguments and filter is given, as Kodi takes a single filter and has no album ID filter for albums (#56, #57).

New: the six library list getters take filter and limits as keyword arguments (#56). get_channel_details() gets one PVR channel (#59). add_to_playlist() puts one item or a list of items on any playlist, and clear_playlist() takes the playlist ID, with the music playlist staying the default (#60).

What's Changed

  • Require jsonrpc-base 2.3.0 by @olympia in #54
  • Require jsonrpc-websocket 4.1.0 by @olympia in #55
  • Add filter and limits to the library list getters by @olympia in #56
  • Reject library ids Kodi cannot filter by by @olympia in #57
  • Return whether the player commands were sent by @olympia in #58
  • Add get_channel_details() by @olympia in #59
  • Add to and clear any playlist by @olympia in #60
  • Seek before previous only when Kodi can seek by @olympia in #61
  • Fix the time that media_seek() sends by @olympia in #62
  • Check library replies and playlist JSON in the tests by @olympia in #63
  • Reject a seek position too large to convert by @olympia in #64
  • Prepare the PyKodi 0.6.0 release by @olympia in #65

Full Changelog: v0.5.0...v0.6.0