Files
pymorg/api/shazam.py
Fabio Scotto di Santolo d1f6c12cba Added track number
- Refactoring code
- Remove Poetry
- Added track number
2024-10-23 11:05:55 +02:00

14 lines
300 B
Python

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)