Browsing
Browsing(api, subsonic)
Class that contains all the methods needed to interact with the browsing endpoints in the Subsonic API.
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_album(album_id)
Get all the info about an album.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
album_id |
str
|
The ID of the album to get its info. |
required |
Returns:
Type | Description |
---|---|
Album
|
An object that contains all the info about the requested album. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_album_info(album_id)
Get all the extra info about an album.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
album_id |
str
|
The ID of the album to get its extra info. |
required |
Returns:
Type | Description |
---|---|
AlbumInfo
|
An object that contains all the extra info about the requested album. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_album_info_non_id3(album_id)
Get all the extra info about an album. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
album_id |
str
|
The ID of the album to get its extra info. |
required |
Returns:
Type | Description |
---|---|
AlbumInfo
|
An object that contains all the extra info about the requested album. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_artist(artist_id)
Get all the info about an artist.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
artist_id |
str
|
The ID of the artist to get its info. |
required |
Returns:
Type | Description |
---|---|
Artist
|
An object that contains all the info about the requested artist. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_artist_info(artist_id, max_similar_artists=None, include_similar_artists_not_present=None)
Get all the extra info about an artist.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
artist_id |
str
|
The ID of the artist to get its extra info. |
required |
max_similar_artists |
int | None
|
The max number of similar artists to return. |
None
|
include_similar_artists_not_present |
bool | None
|
Include similar artists that are not present in any the media library. |
None
|
Returns:
Type | Description |
---|---|
ArtistInfo
|
An object that contains all the extra info about the requested artist. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_artist_info_non_id3(artist_id, max_similar_artists=None, include_similar_artists_not_present=None)
Get all the extra info about an artist. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
artist_id |
str
|
The ID of the artist to get its extra info. |
required |
max_similar_artists |
int | None
|
The max number of similar artists to return. |
None
|
include_similar_artists_not_present |
bool | None
|
Include similar artists that are not present in any the media library. |
None
|
Returns:
Type | Description |
---|---|
ArtistInfo
|
An object that contains all the extra info about the requested artist. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_artists(music_folder_id=None)
Get all the registered artists in the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
music_folder_id |
str | None
|
A music folder ID to reduce the scope of the artists to return. |
None
|
Returns:
Type | Description |
---|---|
list[Artist]
|
A list with all the info about all the received artists. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_artists_indexed(music_folder_id, modified_since)
Get all the registered artist indexed alphabetically.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
music_folder_id |
str
|
A music folder ID to reduce the scope where the artist should be from. |
required |
modified_since |
int
|
Time in milliseconds since the artist have changed its collection. |
required |
Returns:
Type | Description |
---|---|
ArtistIndex
|
An object containt all the artist alphabetically indexed. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_genre(genre_name)
Get all the info of a genre.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
genre_name |
str
|
The name of the genre to get its info. |
required |
Returns:
Type | Description |
---|---|
Genre | None
|
An object that contains all the info about the requested genre. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_genres()
Get all the available genres in the server.
Returns:
Type | Description |
---|---|
list[Genre]
|
A list with all the registered genres in the server. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_music_directory(music_directory_id)
Get the info of a music directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
music_directory_id |
str
|
The ID of the music directory to get its info. |
required |
Returns:
Type | Description |
---|---|
MusicDirectory
|
An object that holds all the info about the requested music directory. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_music_folder(music_folder_id)
Get the info of a music folder.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
music_folder_id |
str
|
The ID of the music folder to get. |
required |
Returns:
Type | Description |
---|---|
MusicFolder | None
|
An object that contains all the info about the requested music folder, or None if it wasn't found. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_music_folders()
Get all the top level music folders.
Returns:
Type | Description |
---|---|
list[MusicFolder]
|
A list that contains all the info about all the available music folders. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_similar_songs(song_id, song_count=None)
Get similar songs to the given one.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
song_id |
str
|
The ID of the song to get similar songs. |
required |
song_count |
int | None
|
The number of songs to return. |
None
|
Returns:
Type | Description |
---|---|
list[Song]
|
A list that contains all the songs that are similar to the given one. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_similar_songs_non_id3(song_id, song_count=None)
Get similar songs to the given one. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
song_id |
str
|
The ID of the song to get similar songs. |
required |
song_count |
int | None
|
The number of songs to return. |
None
|
Returns:
Type | Description |
---|---|
list[Song]
|
A list that contains all the songs that are similar to the given one. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_song(song_id)
Get all the info about a song.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
song_id |
str
|
The ID of the song to get its info. |
required |
Returns:
Type | Description |
---|---|
Song
|
An object that contains all the info about the requested song. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_top_songs(artist_name, max_num_of_songs)
Get the top rated songs in the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
artist_name |
str
|
Limit the ranked songs to the ones created by the given artist. |
required |
max_num_of_songs |
int
|
The max number of songs to return. |
required |
Returns:
Type | Description |
---|---|
list[Song]
|
A list that contains the top rated songs of the server. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_video(video_id)
Get all the info about a video.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
video_id |
str
|
The ID of the video to get its info. |
required |
Returns:
Type | Description |
---|---|
Video | None
|
An object that contains all the info about the requested video. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_video_info(video_id)
Get all the extra info about a video.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
video_id |
str
|
The ID of the video to get its extra info. |
required |
Returns:
Type | Description |
---|---|
VideoInfo
|
An object that holds all the extra info about the requested video. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_browsing.py
get_videos()
Get all the registered videos in the server.
Returns:
Type | Description |
---|---|
list[Video]
|
A list with all the info about al the videos available in the server. |