We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f26deef + 5eb308d commit 51bea15Copy full SHA for 51bea15
mod/searchx/api.py
@@ -3,13 +3,13 @@
3
4
headers = {
5
"Host": "127.0.0.1",
6
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/"
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 LrcAPI"
7
}
8
9
10
def search(title='', artist='', album='') -> list:
11
try:
12
- url = f"http://cn.lrc.cx:880/jsonapi?title={title}&artist={artist}&album={album}&path=None&limit=1&api=lrcapi"
+ url = f"https://api.lrc.cx/jsonapi?title={title}&artist={artist}&album={album}&path=None&limit=1&api=lrcapi"
13
response = requests.get(url, headers=headers)
14
return response.json()
15
except Exception as e:
0 commit comments