Internet Radio Station
InternetRadioStation(subsonic, id, name, streamUrl, homepageUrl)
Bases: Model
Object that holds all the info about a Internet radio station.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
The ID of the Internet radio station. |
name |
str
|
Then name of the Internet radio station. |
stream_url |
str
|
The URL of the stream of the Internet radio station. |
homepage_url |
str
|
The URl of the hompage of the Internet radio station. |
Source code in .venv/lib/python3.11/site-packages/knuckles/models/_internet_radio_station.py
create()
Create a new Internet radio station for the authenticated user with the same data of the object where this method is called.
Returns:
Type | Description |
---|---|
Self
|
The object itself. |
Source code in .venv/lib/python3.11/site-packages/knuckles/models/_internet_radio_station.py
delete()
Delete the Internet radio station entry from the server.
Returns:
Type | Description |
---|---|
Self
|
The object itself. |
Source code in .venv/lib/python3.11/site-packages/knuckles/models/_internet_radio_station.py
generate()
Return a new album object with all the data updated from the API, using the endpoint that return the most information possible.
Useful for making copies with updated data or updating the object
itself with immutability, e.g., foo = foo.generate()
.
Returns:
Type | Description |
---|---|
InternetRadioStation | None
|
A new object with all the updated info. |
Source code in .venv/lib/python3.11/site-packages/knuckles/models/_internet_radio_station.py
update()
Update the info about the Internet radio station using the current data of the object.
Returns:
Type | Description |
---|---|
Self
|
The object itself. |