Searching
Searching(api, subsonic)
Class that contains all the methods needed to interact with the bookmark endpoints in the Subsonic API.
Source code in .venv/lib/python3.11/site-packages/knuckles/_searching.py
search(query='', song_count=None, song_offset=None, album_count=None, album_offset=None, artist_count=None, artist_offset=None, music_folder_id=None)
Search and find all the songs, albums and artists that whose title match the given query.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str
|
The query string to be send to the server. |
''
|
song_count |
int | None
|
The numbers of songs that the server should return. |
None
|
song_offset |
int | None
|
The number of songs to offset in the list, useful for pagination. |
None
|
album_count |
int | None
|
The numbers of albums that the server should return. |
None
|
album_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
artist_count |
int | None
|
The numbers of artists that the server should return. |
None
|
artist_offset |
int | None
|
The number of artists to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
An ID of a music folder to limit where the songs, albums and artists should come from. |
None
|
Returns:
Type | Description |
---|---|
SearchResult
|
An object that contains all the info about the found songs, albums and artists received with the given query. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_searching.py
search_non_id3(query, song_count=None, song_offset=None, album_count=None, album_offset=None, artist_count=None, artist_offset=None, music_folder_id=None)
Search and find all the songs, albums and artists that whose title match the given query. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str
|
The query string to be send to the server. |
required |
song_count |
int | None
|
The numbers of songs that the server should return. |
None
|
song_offset |
int | None
|
The number of songs to offset in the list, useful for pagination. |
None
|
album_count |
int | None
|
The numbers of albums that the server should return. |
None
|
album_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
artist_count |
int | None
|
The numbers of artists that the server should return. |
None
|
artist_offset |
int | None
|
The number of artists to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
An ID of a music folder to limit where the songs, albums and artists should come from. |
None
|
Returns:
Type | Description |
---|---|
SearchResult
|
An object that contains all the info about the found songs, albums and artists received with the given query. |