music use local api

This commit is contained in:
SiHuan 2020-04-26 21:54:38 +08:00
parent fae3a54bfc
commit b43e8af97f

View file

@ -7,11 +7,11 @@ class Ans(StdAns):
return '不加参数是坏文明!' return '不加参数是坏文明!'
# url = 'https://api.imjad.cn/cloudmusic/' # url = 'https://api.imjad.cn/cloudmusic/'
url = 'https://music.jeeas.cn/v1/search' # url = 'https://music.jeeas.cn/v1/search'
url = 'http://mc.sakuya.love:3000/search'
params = { params = {
'limit': 1, 'limit': 1,
'from': 'music', 'keywords':self.raw_msg['message'][6:],
's':self.raw_msg['message'][6:],
} }
try: try:
resp = requests.get(url=url,params=params).json() resp = requests.get(url=url,params=params).json()