Lavalink

Latest version: v5.9.0

Safety actively analyzes 687959 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 7

5.6.0

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.

5.5.0

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`.

5.4.0

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.

5.3.0

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.

5.2.0

Additions
- Added public `Node.request` method for making HTTP requests.
- Added `Client.remove_event_hooks` method.

Fixes
- Fix a potential issue where `player.current` would be set to `None` upon receiving subsequent `TrackStartEvent`s.
- Fix `position` potentially reading incorrectly when a non-zero `start_time` was provided.
- Fix `player.paused` potentially holding an incorrect state if the player is paused and then skipped (forcing an un-pause).

Changes
- Documentation improvements.
- Improve robustness of player failover.

5.1.0

Additions
- Node.get_rest_latency()

Page 2 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.