update music
This commit is contained in:
parent
0c6d85e6e5
commit
9d63ff3122
1 changed files with 1 additions and 1 deletions
|
@ -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) + ']'
|
||||||
|
|
Loading…
Reference in a new issue