From 3c74d299be857a3169a7b3e9d51c8488a3f5b566 Mon Sep 17 00:00:00 2001 From: hisatri Date: Mon, 23 Sep 2024 19:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AF=B7=E6=B1=82=E7=9A=84?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mod/searchx/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/searchx/api.py b/mod/searchx/api.py index 3f3b986..31858d5 100644 --- a/mod/searchx/api.py +++ b/mod/searchx/api.py @@ -10,7 +10,7 @@ def search(title='', artist='', album='') -> list: try: url = f"http://cn.lrc.cx:880/jsonapi?title={title}&artist={artist}&album={album}&path=None&limit=1&api=lrcapi" - response = requests.get(url, headers=headers, timeout=15) + response = requests.get(url, headers=headers) return response.json() except Exception as e: print(f"LrcAPI Server - Request failed: {e}")