Added track number

- Refactoring code
- Remove Poetry
- Added track number
This commit is contained in:
Fabio Scotto di Santolo
2024-10-23 11:05:55 +02:00
parent 235f8234a6
commit d1f6c12cba
13 changed files with 129 additions and 931 deletions

13
api/shazam.py Normal file
View 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)