significant refactor/cleanup
This commit is contained in:
@@ -47,7 +47,7 @@ class LastFM:
|
||||
'err': 'Failed'
|
||||
}
|
||||
|
||||
async def get_track_info(self, artist=None, track=None):
|
||||
async def get_track_info(self, artist=None, track=None) -> dict:
|
||||
"""Get Track Info from LastFM"""
|
||||
try:
|
||||
if artist is None or track is None:
|
||||
@@ -74,7 +74,7 @@ class LastFM:
|
||||
'err': 'General Failure'
|
||||
}
|
||||
|
||||
async def get_album_tracklist(self, artist=None, album=None):
|
||||
async def get_album_tracklist(self, artist=None, album=None) -> dict:
|
||||
"""Get Album Tracklist"""
|
||||
try:
|
||||
if artist is None or album is None:
|
||||
@@ -98,7 +98,7 @@ class LastFM:
|
||||
'err': 'General Failure'
|
||||
}
|
||||
|
||||
async def get_artist_albums(self, artist=None):
|
||||
async def get_artist_albums(self, artist=None) -> dict|list[dict]:
|
||||
"""Get Artists Albums from LastFM"""
|
||||
try:
|
||||
if artist is None:
|
||||
|
||||
Reference in New Issue
Block a user