From 84a3e1076eda2373bd9f0633738f2605e5c4bd8e Mon Sep 17 00:00:00 2001 From: Uyanide Date: Sun, 5 Apr 2026 06:28:23 +0200 Subject: [PATCH] fix: missing await --- lrx_cli/fetchers/qqmusic.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lrx_cli/fetchers/qqmusic.py b/lrx_cli/fetchers/qqmusic.py index 011e297..d1daad0 100644 --- a/lrx_cli/fetchers/qqmusic.py +++ b/lrx_cli/fetchers/qqmusic.py @@ -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() diff --git a/pyproject.toml b/pyproject.toml index 283b9eb..ce61f01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"