update music

This commit is contained in:
SiHuan 2020-08-03 12:34:53 +08:00
parent 0c6d85e6e5
commit 9d63ff3122

View file

@ -15,7 +15,7 @@ class Ans(StdAns):
} }
try: try:
resp = requests.get(url=url,params=params).json() resp = requests.get(url=url,params=params).json()
print(resp) # print(resp)
musicid = resp['result']['songs'][0]['id'] musicid = resp['result']['songs'][0]['id']
musicname = resp['result']['songs'][0]['name'] musicname = resp['result']['songs'][0]['name']
msg = '[CQ:share,url=https://music.163.com/song/' + str(musicid) + '/,title=' + str(musicname) + ']' msg = '[CQ:share,url=https://music.163.com/song/' + str(musicid) + '/,title=' + str(musicname) + ']'