Skip to content

Search Result

SearchResult(subsonic, songs=None, albums=None, artists=None)

Bases: Model

Object that holds all the info about a search result.

Attributes:

Name Type Description
songs list[Song] | None

List that holds all the info about all the songs returned in the search result.-

albums list[Album] | None

List that holds all the info about all the albums returned in the search result.

artists list[Artist] | None

List that holds all the info about all the artists returned in the search result.

Source code in .venv/lib/python3.11/site-packages/knuckles/models/_search_result.py
def __init__(
    self,
    subsonic: "Subsonic",
    songs: list[Song] | None = None,
    albums: list[Album] | None = None,
    artists: list[Artist] | None = None,
) -> None:
    super().__init__(subsonic)

    self.songs = songs
    self.albums = albums
    self.artists = artists