Skip to content

Commit

Permalink
更改请求的超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
HisAtri committed Sep 23, 2024
1 parent 9e8c02d commit 3c74d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/searchx/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 3c74d29

Please sign in to comment.