Skip to content

Add search possibility to Media Browser #677

Answered by OnFreund
micha91 asked this question in General
Discussion options

You must be logged in to vote

Trying to resurrect this, I'm thinking through the backend implementation. I think search can be added to both media players and media sources (in the same way that both can support browsing).
The common interface would be a search function:

async def async_search_media(self, query: str, allowed_classes: list[MediaClass]) -> list[BrowseMediaSource]

The return value would be a list corresponding to the media classes available in the results, with the children of each BrowseMediaSource representing the actual items. In the future we can also consider adding a limit to the number of results, and an offset/page to allow retrieving additional results.

Media players would signal their support u…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@balloob
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@emontnemery
Comment options

@OnFreund
Comment options

@OnFreund
Comment options

@balloob
Comment options

@emontnemery
Comment options

Answer selected by emontnemery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants