try to fix qymusic
This commit is contained in:
parent
036d43fadd
commit
b4e48fd54b
1 changed files with 34 additions and 32 deletions
|
@ -1,5 +1,6 @@
|
|||
from zzcore import StdAns
|
||||
import requests
|
||||
import re
|
||||
|
||||
class Ans(StdAns):
|
||||
def GETMSG(self):
|
||||
|
@ -24,6 +25,7 @@ class Ans(StdAns):
|
|||
}
|
||||
try:
|
||||
resp = requests.get(url=url,params=params)
|
||||
# print(resp)
|
||||
resp = re.match("callback%((.+)%)", resp).json()
|
||||
if resp['data']['song']['totalnum'] == 0:
|
||||
return '辣鸡曲库没这首,或者你的关键词有问题'
|
||||
|
|
Loading…
Reference in a new issue