This commit is contained in:
2025-02-14 16:07:24 -05:00
parent 00af36703a
commit 60416c493f
19 changed files with 204 additions and 308 deletions

View File

@ -18,8 +18,4 @@ class LyricsResult:
src: str
lyrics: str|list
confidence: int
time: float = 0.00
def todict(self) -> dict:
"""Return as dict"""
return asdict(self)
time: float = 0.00

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3.12
SCRAPE_HEADERS = {
SCRAPE_HEADERS: dict[str, str] = {
'accept': '*/*',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0',
}

View File

@ -14,7 +14,6 @@ from . import private, common, cache, redis_cache
from lyric_search import utils
from lyric_search.constructors import LyricsResult
logger = logging.getLogger()
log_level = logging.getLevelName(logger.level)