Added track number
- Refactoring code - Remove Poetry - Added track number
This commit is contained in:
0
api/__init__.py
Normal file
0
api/__init__.py
Normal file
13
api/shazam.py
Normal file
13
api/shazam.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from typing import Any
|
||||
|
||||
from shazamio import Shazam
|
||||
|
||||
|
||||
async def recognize(data: str) -> dict[str, Any]:
|
||||
api: Shazam = Shazam()
|
||||
return await api.recognize(data)
|
||||
|
||||
|
||||
async def album(album_id: int) -> dict[str, Any]:
|
||||
api: Shazam = Shazam()
|
||||
return await api.search_album(album_id=album_id)
|
||||
Reference in New Issue
Block a user