Skip to content

Releases: devoxin/Lavalink.py

5.9.0

22 Sep 14:06
6bf2b83
Compare
Choose a tag to compare

Additions

  • Allow specifying timeout for aiohttp.

5.8.1

18 Sep 13:11
64a538e
Compare
Choose a tag to compare

Fixes

  • Fixed missing imports.

5.8.0

17 Sep 21:19
f37dadd
Compare
Choose a tag to compare

Additions

  • Implement TypedDict classes for raw REST responses (e.g. RawRouteplanner, RawInfo etc).
  • Implement __str__ for Enum and LoadResultError classes.

Fixes

  • Ignore CancelledError in event hook dispatching tasks.
  • Fixed typing for Client.remove_event_hooks.
  • Fixed return type for get_routeplanner_status.

Changes

  • Bump required Python version to >=3.8.
  • Bump minimum required aiohttp version.

5.7.2

10 Sep 13:19
da630df
Compare
Choose a tag to compare

Fixes

  • Fixed an issue where long-running event-handling methods triggered by websocket messages could block the websocket connection.

Lavalink.py 5.7.1

25 Jul 21:30
82240fc
Compare
Choose a tag to compare

Fixes

  • Fixed a regression in 5.7.0 where instanting an AudioTrack from another AudioTrack may fail when requester cannot be accessed via dot notation as data has been reassigned to a dict.

Lavalink.py 5.7.0

23 Jul 15:57
Compare
Choose a tag to compare

Additions

  • Allow setting filter values at instantiation.

Fixes

  • Copy requester field when instantiating an AudioTrack from another AudioTrack.

Lavalink.py 5.6.0

09 Jul 10:24
7d43966
Compare
Choose a tag to compare

Additions

  • Added base exception that all other errors extend from.

Fixes

  • Fixed a possible issue where BasePlayer._internal_pause may not have been reset if an exception was thrown before it was set to False.
    • This affected player state during node changes.
  • Fixed an issue where the client would not consistently shift generic requests (i.e. client.get_tracks) to other, available nodes if any went down.

Changes

  • Type-hinted support for passing an AudioTrack to an AudioTrack constructor, as a form of cloning.
  • Undeprecated NodeManager.available_nodes.
  • Request errors aiohttp.ClientError and asyncio.TimeoutError are re-thrown as themselves rather than as lavalink.errors.ClientError for clarity.

Lavalink.py 5.5.0

26 Jun 16:28
5456440
Compare
Choose a tag to compare

Additions

  • Added missing filter_band overload for the karaoke filter.
  • Added support for setting tags on nodes.
  • Added support for creating a player with a filter for selecting nodes.

Fixes

  • Fixed an issue where instantiating a RequestError throws a KeyError: 'message' caused by the server not sending expected data.

Changes

  • Simplified the no_replace check within DefaultPlayer.
  • Updated incorrect docs for code and reason fields within WebSocketClosedEvent.
  • Players are now destroyed unconditionally when requested (i.e. a player no longer has to exist within the cache for the library to destroy it).
  • Only log unknown events when there are no listeners for IncomingWebSocketMessage.

Lavalink.py 5.4.0

10 May 21:13
69dca8a
Compare
Choose a tag to compare

Additions

  • Added a connect kwarg to add_node.
  • Added source_encoders option to encode_track for specifying per-source data to be encoded into the base64 track string.

Fixes

  • Fixed overload ordering for Node.request so that the str overload is now correctly selected.
  • Fixed an issue with last_position being incorrectly set and used during node failover.
  • Fixed AuthenticationError being caught and rethrown as ClientError during HTTP requests.

Changes

  • Added a note about the potential consequences of calling DefaultPlayer.play, DefaultPlayer.skip and BasePlayer.play_track.
  • Documentation for the DataIO module.
  • Documentation notes about when to call play/play_track methods from track events.

Lavalink.py 5.3.0

08 Mar 20:15
4ea2dc7
Compare
Choose a tag to compare

Additions

  • [typings] Add player types to PlayerManager class.
  • [docs] Annotate return type of DeferredAudioTrack.load method.
  • [docs] Expose the DataReader and DataWriter classes in DataIO.
  • [interface] Add support for per-source base64 track field decoding.
  • [interface] Add DefaultPlayer.remove_filters method for removing multiple filters at once.

Fixes

  • [typings] Fix events type for @lavalink.listener decorator.
  • [internal] Fix LowPass filter trying to convert 'smoothing' to a float.
  • [internal] Attach exception information to error log when handling websocket message.

Changes

  • [interface] Renamed AudioTrack.stream to AudioTrack.is_stream for naming consistency and clarity.
    • AudioTrack.stream is still available but marked deprecated.