Repository navigation
Releases
PyKodi 0.6.0
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.
CannotConnectErrortakes its message from the jsonrpc-base error as it is, andis_error_response()is only true for a JSON-RPC error object coming from Kodi (#54).play_pause(),play(),pause(),stop(),next_track(),previous_track()andmedia_seek()returnFalsewithout sending the command when no player is active, andTrueonce the command went out, likeset_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()raisesValueErrorfor a negative, not finite or too large position, and it rounds the position to whole milliseconds (#62, #64). get_albums()raisesValueErrorforalbum_id, andget_albums()andget_songs()raise it when more than one of the ID arguments andfilteris 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
PyKodi 0.5.0
Changes in behaviour:
- jsonrpc-async 2.2.0 or newer is required, and jsonrpc-base is now listed as a direct requirement (#44, #52).
Kodi.call_method()takes the method name only by position. A call written ascall_method(method="...")does not work anymore, and in exchange a param with the namemethodnow reaches Kodi (#46).Kodi.set_shuffle()returnsFalsewithout sending anything when no player is active, andTrueonce the request went out (#47).CannotConnectErrorcarries a message: the timeout ofconnect(), or the text of the transport error together with the error it wraps, never the login (#48).
New: get_stream_info() looks for the HDR tags in the name of the folder of the playing file too, and gives Player.Folderpath back under infolabels (#45). is_error_response() and is_unauthorized() tell what a ProtocolError or a TransportError means (#50). CI also runs the tests with the lowest allowed versions of the dependencies (#51).
What's Changed
- Require jsonrpc-async 2.2.0 by @olympia in #44
- Look for HDR hints in the folder name too by @olympia in #45
- Let call_method pass a param named method by @olympia in #46
- Tell from set_shuffle whether the request was sent by @olympia in #47
- Give CannotConnectError a message by @olympia in #48
- Let the set_shuffle test pass with jsonrpc-base 2.1.0 by @olympia in #49
- Add helpers that classify ProtocolError and TransportError by @olympia in #50
- Run the tests with the lowest allowed dependencies by @olympia in #51
- Require jsonrpc-base directly by @olympia in #52
- Prepare the PyKodi 0.5.0 release by @olympia in #53
Full Changelog: v0.4.0...v0.5.0
PyKodi 0.4.0
Changes in behaviour:
- Python 3.11 or newer and aiohttp 3.10.8 or newer are required (#33, #42).
close()stops aconnect()that is still in the websocket handshake, and the pendingconnect()raisesCannotConnectError(#31).- A websocket connection without a passed session can connect again after
close()(#38). Kodi.ping()raisesInvalidAuthErroronly for an HTTP 401 reply, and errors while reading the reply come out asCannotConnectError(#40, #41).get_episodes(tv_show_id, 0)asks for season 0 now, before it returned the episodes of every season (#16).
New: pykodi ships type information (py.typed), and TransportError and ProtocolError can be imported from pykodi (#32, #36, #37).
What's Changed
- Update artifact actions to use Node.js 24 by @olympia in #30
- Preserve season zero in episode queries by @raman325 in #16
- Export TransportError and ProtocolError by @olympia in #32
- Stop a pending connect() on close() by @olympia in #31
- Require Python 3.11 or newer by @olympia in #33
- Run the tests on pull requests by @olympia in #34
- Correct two comments about eager tasks by @olympia in #35
- Add type annotations to the connection classes by @olympia in #36
- Add type annotations to the Kodi class and ship py.typed by @olympia in #37
- Allow connect() after close() without a session by @olympia in #38
- Update actions/checkout and actions/setup-python to v7 by @olympia in #39
- Fix ping reporting an unreachable Kodi as invalid auth by @olympia in #40
- Turn reply read errors of ping into CannotConnectError by @olympia in #41
- Require aiohttp 3.10.8 or newer by @olympia in #42
- Prepare the PyKodi 0.4.0 release by @olympia in #43
Full Changelog: v0.3.0...v0.4.0
PyKodi 0.3.0
What's Changed
- Add error checking to call_method by @raman325 in #17
- Bump jsonrpc-websocket min requirement by @OzGav in #20
- Add subscribe API for Kodi notifications by @olympia in #24
- Add get_stream_info for stream and HDR details by @olympia in #25
- Bracket bare IPv6 literal hosts in URLs by @kel-mo in #22
- Bound the websocket handshake and keep the read loop task by @olympia in #26
- Send the Basic auth header without aiohttp.BasicAuth by @olympia in #27
- Add a disconnect callback and serialize connect() by @olympia in #28
- Prepare the PyKodi 0.3.0 release by @olympia in #29
New Contributors
- @raman325 made their first contribution in #17
- @OzGav made their first contribution in #20
- @olympia made their first contribution in #24
- @kel-mo made their first contribution in #22
Full Changelog: v0.2.7...v0.3.0