Lists
Lists(api, subsonic)
Class that contains all the methods needed to interact with the lists endpoints in the Subsonic API.
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_alphabetical_by_artist(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized alphabetically by their artist name. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized alphabetically by their artist name. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_alphabetical_by_artist_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized alphabetically by their artist name. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized alphabetically by their artist name. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_alphabetical_by_name(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized alphabetically by their names. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized alphabetically by their names. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_alphabetical_by_name_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized alphabetically by their names. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized alphabetically by their names. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_by_genre(genre_name, num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get all the albums that are tagged with the given genre. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
genre_name |
str
|
The name of the genre that all the albums must be tagged with. |
required |
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums that are tagged with the given album. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_by_genre_non_id3(genre_name, num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get all the albums that are tagged with the given genre. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
genre_name |
str
|
The name of the genre that all the albums must be tagged with. |
required |
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums that are tagged with the given album. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_by_year(from_year, to_year, num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get all the album registered by the server that were created between the given year range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
from_year |
int
|
The minimum year of the range where the albums were created. |
required |
to_year |
int
|
The maximum year of the range where the albums were created. |
required |
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums that where released in the given year range. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_by_year_non_id3(from_year, to_year, num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get all the album registered by the server that were created between the given year range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
from_year |
int
|
The minimum year of the range where the albums were created. |
required |
to_year |
int
|
The maximum year of the range where the albums were created. |
required |
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums that where released in the given year range. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_frequent(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the most frequent listened to the least. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from the most frequent listened to the least. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_frequent_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the most frequent listened to the least. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from the most frequent listened to the least. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_highest(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the highest rated to the lowest ones. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
The number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
The ID of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from the highest rated to the lowest ones. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_highest_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the highest rated to the lowest ones. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
The number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
The ID of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from the highest rated to the lowest ones. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_newest(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the newest added to the oldest. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
The number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
The ID of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from newest to oldest. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_newest_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the newest added to the oldest. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
The number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
The ID of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from newest to oldest. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_random(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a random list of albums from the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
The number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
The ID of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about random albums. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_random_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a random list of albums from the server. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
The number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
The number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
The ID of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about random albums. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_recent(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the most recent listened to the least. not organized according id3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from the most recent listened to the least. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_recent_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of albums from the server organized from the most recent listened to the least. not organized according id3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums organized from the most recent listened to the least. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_starred(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of the albums that have been starred by the authenticated user. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums starred by the user. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_album_list_starred_non_id3(num_of_albums=None, album_list_offset=None, music_folder_id=None)
Get a list of the albums that have been starred by the authenticated user. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_albums |
int | None
|
the number of albums to be in the list. |
None
|
album_list_offset |
int | None
|
the number of album to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
the id of a music folder to list where the album are from. |
None
|
Returns:
Type | Description |
---|---|
list[Album]
|
A list that contains the info about the albums starred by the user. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_now_playing()
Get the songs that are currently playing by all the users.
Returns:
Type | Description |
---|---|
list[NowPlayingEntry]
|
A list that holds all the info about all the song that are current playing by all the users. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_random_songs(num_of_songs=None, genre_name=None, from_year=None, to_year=None, music_folder_id=None)
Get random songs registered in the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_songs |
int | None
|
The number of songs to return. |
None
|
genre_name |
str | None
|
The genre that the songs must have it tagged on them. |
None
|
from_year |
int | None
|
The minimum year where the songs were released. |
None
|
to_year |
int | None
|
The maximum year where the songs were released. |
None
|
music_folder_id |
str | None
|
An ID of a music folder to limit where the songs should be from. |
None
|
Returns:
Type | Description |
---|---|
list[Song]
|
A list that contains all the info about that were randomly selected by the server. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_songs_by_genre(genre_name, num_of_songs=None, song_list_offset=None, music_folder_id=None)
Get all the songs tagged with the given genre.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
genre_name |
str
|
The name of the genre that all the songs must be tagged with. |
required |
num_of_songs |
int | None
|
The number of songs that the list should have. |
None
|
song_list_offset |
int | None
|
the number of songs to offset in the list, useful for pagination. |
None
|
music_folder_id |
str | None
|
An ID of a music folder where all the songs should be from. |
None
|
Returns:
Type | Description |
---|---|
list[Song]
|
A list that contains all the info about that are tagged with the given genre. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_starred(music_folder_id=None)
Get all the songs, albums and artists starred by the authenticated user.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
music_folder_id |
str | None
|
An ID of a music folder where all the songs albums, and artists should be from. |
None
|
Returns:
Type | Description |
---|---|
StarredContent
|
An object that holds all the info about all the starred songs, albums and artists by the user. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_lists.py
get_starred_non_id3(music_folder_id=None)
Get all the songs, albums and artists starred by the authenticated user. Not organized according ID3 tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
music_folder_id |
str | None
|
An ID of a music folder where all the songs albums, and artists should be from. |
None
|
Returns:
Type | Description |
---|---|
StarredContent
|
An object that holds all the info about all the starred songs, albums and artists by the user. |