Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for finding songs within nested heos source trees #22

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

gcjones
Copy link

@gcjones gcjones commented Dec 10, 2021

Added support for finding songs within nested heos source trees - usful when using local dlna music servers.

Added the ability to browse container sources.
Containers now inherit the source_id of the parent source.
Songs now inherit the source_id and container_id of the parent source, allowing them to be queued.
Added support for saving the queue as a playlist.
Added support for getting the current queue.

Description:

When using a local dlna server with heos, the heos sources can be deeply nested and the server often does not support search directly. These changes allow the user to efficiently explore the heos source tree, finding songs and adding them to the queue.

The code works by using the browse commands to build an index for each source. By default, this is done lazily, but an index_all command gives the user the option to recursively build the full index up front.

I have also added support for saving the queue as a playlist.

I developed these chages to allow me to import XSPF playlists (exported from Sonos using soco) into my heos system.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • Tests have been added/updated. No exclusions in .coveragerc permitted.
  • README.MD updated (if necessary)

…ful when using local dlna music servers.

Added the ability to browse container sources.
Containers now inherit the source_id of the parent source.
Songs now inherit the source_id and container_id of the parent source, allowing them to be queued.
Added support for saving the queue as a playlist.
Added support for getting the current queue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant