fix: missing await

This commit is contained in:
2026-04-05 06:28:23 +02:00
parent 449952c6c1
commit 84a3e1076e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ class QQMusicFetcher(BaseFetcher):
try:
async with httpx.AsyncClient(timeout=HTTP_TIMEOUT) as client:
resp = await client.get(
f"{self.auth.authenticate()}/api/search",
f"{await self.auth.authenticate()}/api/search",
params={"keyword": query, "type": "song", "num": limit},
)
resp.raise_for_status()
@@ -111,7 +111,7 @@ class QQMusicFetcher(BaseFetcher):
try:
async with httpx.AsyncClient(timeout=HTTP_TIMEOUT) as client:
resp = await client.get(
f"{self.auth.authenticate()}/api/lyric",
f"{await self.auth.authenticate()}/api/lyric",
params={"mid": mid},
)
resp.raise_for_status()
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "lrx-cli"
version = "0.5.0"
version = "0.5.1"
description = "Fetch line-synced lyrics for your music player."
readme = "README.md"
requires-python = ">=3.13"