Podcast
Podcast(api, subsonic)
Class that contains all the methods needed to interact with the podcast endpoints in the Subsonic API.
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
create_podcast_channel(url)
Create a new podcast channel
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url |
str
|
The URL of the podcast to add. |
required |
Returns:
Type | Description |
---|---|
Subsonic
|
The Subsonic object where this method was called to allow method chaining. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
delete_podcast_channel(podcast_channel_id)
Delete a podcast channel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
podcast_channel_id |
str
|
The ID of the podcast channel to delete. |
required |
Returns:
Type | Description |
---|---|
Subsonic
|
The Subsonic object where this method was called to allow method chaining. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
delete_podcast_episode(podcast_episode_id)
Delete a podcast episode from the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
podcast_episode_id |
str
|
The ID of the podcast episode to delete. |
required |
Returns:
Type | Description |
---|---|
Subsonic
|
The Subsonic object where this method was called to allow method chaining. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
download_podcast_episode(podcast_episode_id)
Download a podcast episode to the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
podcast_episode_id |
str
|
The ID of the podcast episode to download to the server. |
required |
Returns:
Type | Description |
---|---|
Subsonic
|
The Subsonic object where this method was called to allow method chaining. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
get_newest_podcast_episodes(number_max_episodes)
Get all the info about the newest released podcast episodes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
number_max_episodes |
int
|
The max number of episodes that the server should return. |
required |
Returns:
Type | Description |
---|---|
list[Episode]
|
A list that holds all the info about all the newest released episodes. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
get_podcast_channel(podcast_channel_id, with_episodes=None)
Get all the info about a podcast channel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
podcast_channel_id |
str
|
The ID of the podcast channel to get its info. |
required |
with_episodes |
bool | None
|
If the server should also return all the info about each episode of the podcast channel. |
None
|
Returns:
Type | Description |
---|---|
Channel
|
An object that hold all the info about the requested podcast channel. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
get_podcast_channels(with_episodes=True)
Get all the info about all the available podcasts channels in the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
with_episodes |
bool
|
If the server should also return all the info about each episode of each podcast channel |
True
|
Returns:
Type | Description |
---|---|
list[Channel]
|
An list that hold all the info about all the available podcasts channels. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
get_podcast_episode(episode_id)
Get all the info about a podcast episode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
episode_id |
str
|
The ID of the podcast episode to get its info. |
required |
Returns:
Type | Description |
---|---|
Episode | None
|
An object that holds all the info about the requested podcast episode. |
Source code in .venv/lib/python3.11/site-packages/knuckles/_podcast.py
refresh_podcasts()
Request the server to search for new podcast episodes.
Returns:
Type | Description |
---|---|
Subsonic
|
The Subsonic object where this method was called to allow method chaining. |