Cleanup: Normalize variable names in stream_audio

This commit is contained in:
Khoa Vo 2026-01-01 16:52:49 +07:00
parent c63187c374
commit d9926642ad

View file

@ -659,8 +659,8 @@ async def stream_audio(id: str):
raise ydl_error raise ydl_error
if stream_url: if stream_url:
cache_data = {"url": stream_url, "mime": mime_type, "headers": http_headers} cached_data = {"url": stream_url, "mime": mime_type, "headers": http_headers}
cache.set(cache_key, cache_data, ttl_seconds=3600) cache.set(cache_key, cached_data, ttl_seconds=3600)
if not stream_url: if not stream_url:
raise HTTPException(status_code=404, detail="Audio stream not found") raise HTTPException(status_code=404, detail="Audio stream not found")