Cleanup: Normalize variable names in stream_audio
This commit is contained in:
parent
c63187c374
commit
d9926642ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue