This commit is contained in:
2025-11-22 21:41:12 -05:00
parent dcc6c7b24e
commit 3d0b867427
6 changed files with 97 additions and 249 deletions

View File

@@ -766,7 +766,7 @@ class Radio(FastAPI):
# Try SR first with timeout
try:
async with asyncio.timeout(5.0): # 5 second timeout
async with asyncio.timeout(10.0): # 5 second timeout
lrc = await self.sr_util.get_lrc_by_artist_song(
artist, title, duration=duration
)
@@ -782,7 +782,7 @@ class Radio(FastAPI):
# Try LRCLib as fallback with timeout
try:
async with asyncio.timeout(5.0): # 5 second timeout
async with asyncio.timeout(10.0): # 10 second timeout
logging.info("[LRC] Trying LRCLib fallback")
lrclib_result = await self.lrclib.search(artist, title, plain=False)
if lrclib_result and lrclib_result.lyrics and isinstance(lrclib_result.lyrics, str):