docstrings
This commit is contained in:
@@ -54,7 +54,7 @@ class SRUtil:
|
|||||||
return f"{m}:{s:02}"
|
return f"{m}:{s:02}"
|
||||||
|
|
||||||
async def get_artists_by_name(self, artist_name: str) -> Optional[list]:
|
async def get_artists_by_name(self, artist_name: str) -> Optional[list]:
|
||||||
"""Get artist(s) by name from HiFi API.
|
"""Get artist(s) by name.
|
||||||
Args:
|
Args:
|
||||||
artist_name (str): The name of the artist.
|
artist_name (str): The name of the artist.
|
||||||
Returns:
|
Returns:
|
||||||
@@ -89,7 +89,7 @@ class SRUtil:
|
|||||||
return artists_out
|
return artists_out
|
||||||
|
|
||||||
async def get_albums_by_artist_id(self, artist_id: int) -> Optional[list | dict]:
|
async def get_albums_by_artist_id(self, artist_id: int) -> Optional[list | dict]:
|
||||||
"""Get albums by artist ID from HiFi API.
|
"""Get albums by artist ID
|
||||||
Args:
|
Args:
|
||||||
artist_id (int): The ID of the artist.
|
artist_id (int): The ID of the artist.
|
||||||
Returns:
|
Returns:
|
||||||
@@ -127,7 +127,7 @@ class SRUtil:
|
|||||||
return albums_out
|
return albums_out
|
||||||
|
|
||||||
async def get_tracks_by_album_id(self, album_id: int) -> Optional[list | dict]:
|
async def get_tracks_by_album_id(self, album_id: int) -> Optional[list | dict]:
|
||||||
"""Get tracks by album ID from HiFi API.
|
"""Get tracks by album ID
|
||||||
Args:
|
Args:
|
||||||
album_id (int): The ID of the album.
|
album_id (int): The ID of the album.
|
||||||
Returns:
|
Returns:
|
||||||
@@ -158,7 +158,7 @@ class SRUtil:
|
|||||||
return tracks_out
|
return tracks_out
|
||||||
|
|
||||||
async def get_tracks_by_artist_song(self, artist: str, song: str) -> Optional[list]:
|
async def get_tracks_by_artist_song(self, artist: str, song: str) -> Optional[list]:
|
||||||
"""Get track by artist and song name from HiFi API.
|
"""Get track by artist and song name
|
||||||
Args:
|
Args:
|
||||||
artist (str): The name of the artist.
|
artist (str): The name of the artist.
|
||||||
song (str): The name of the song.
|
song (str): The name of the song.
|
||||||
@@ -171,7 +171,7 @@ class SRUtil:
|
|||||||
async def get_stream_url_by_track_id(
|
async def get_stream_url_by_track_id(
|
||||||
self, track_id: int, quality: str = "LOSSLESS"
|
self, track_id: int, quality: str = "LOSSLESS"
|
||||||
) -> Optional[str]:
|
) -> Optional[str]:
|
||||||
"""Get stream URL by track ID from HiFi API.
|
"""Get stream URL by track ID
|
||||||
Args:
|
Args:
|
||||||
track_id (int): The ID of the track.
|
track_id (int): The ID of the track.
|
||||||
quality (str): The quality of the stream, default is "LOSSLESS". Other options: HIGH, LOW
|
quality (str): The quality of the stream, default is "LOSSLESS". Other options: HIGH, LOW
|
||||||
|
Reference in New Issue
Block a user