Skip to content

PyKodi 0.4.0

Choose a tag to compare

@olympia olympia released this 18 Nov 19:26
· 44 commits to master since this release
5375884

Changes in behaviour:

  • Python 3.11 or newer and aiohttp 3.10.8 or newer are required (#33, #42).
  • close() stops a connect() that is still in the websocket handshake, and the pending connect() raises CannotConnectError (#31).
  • A websocket connection without a passed session can connect again after close() (#38).
  • Kodi.ping() raises InvalidAuthError only for an HTTP 401 reply, and errors while reading the reply come out as CannotConnectError (#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