feat: download songs asyncronously

This commit is contained in:
Radu C. Martin 2025-04-15 14:11:25 +02:00
parent e984e70390
commit 2286d7a8d5
2 changed files with 7 additions and 3 deletions

View file

@ -128,7 +128,7 @@ def get_queue():
@app.post("/queue", tags=["queue"])
async def post_to_queue(url: str):
track = dl_service.download(url)
track = await dl_service.download(url)
await player.add_to_queue(track)