Pysqueezebox

Latest version: v0.10.0

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

Scan your dependencies

Page 3 of 5

0.5.5

-Expose `generate_image_url_from_track_id` in the Player object; needed for https://github.com/home-assistant/core/pull/42193

0.5.4

- Fix a bug in v0.5.3 in `async_browse` when called without a limit
- Migrate away from asynctest

0.5.3

-Improve cache handling for `async_browse_media` so that entire library is not fetched unnecessarily

0.5.2

-Fixes a bug in the artwork url for certain plugins that gave a relative "remote" artwork url

v.0.5.0
Adds `async_browse` method to `pysqueezebox.Server`. This allows you to traverse the server's catalog. Intended to support the Home Assistant `async_browse_media` method but it may have other uses too.

0.4.0

The Player module now verifies that commands sent to the server for controlling a squeezebox player actually took effect, which can help with scripts that require actions to be performed in a specific order. The coroutine does not complete until this verification has taken place. You can use `asyncio.create_task()` instead of `await` if you don't want to block until the task is complete. Or if you don't want to poll the server to verify the task is completely, call the player coroutine with the parameter `timeout=0`.

There is a new method, `Player.create_property_future(property, condition, inteval)`, which returns an `asyncio.Future` that completes when a player property enters a certain state. `condition` is a method that accepts the property as its only parameter and returns `True` if it is met. You can specify the maximum time between server polls withe the `interval` parameter; the default is one second. Pysqueezebox will consolidate these polls to avoid spamming the server.

Also, thank you to Greg X for contributing a patch exposing several additional player properties, including:
-Expose audio encoding details such as media type, bit rate, etc
-Expose LMS remote and remote_title fields for improved identification of internet radio stations
-Allow retrieval of elapsed time and total time with floating precision
-Allow caller to specify LMS tags to request additional information from the server

0.3.1

-Add `Player.async_stop()` method
-Workaround Logitech Media Server ignoring `pause` and `stop` commands sent immediately after `play`

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.