From 199637ca1f07350721d4e5ff39437a3dd9c693c3 Mon Sep 17 00:00:00 2001 From: weilinfox Date: Fri, 21 Aug 2020 10:57:38 +0800 Subject: [PATCH] fix music --- worker/music.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worker/music.py b/worker/music.py index 734c942..04df6ba 100644 --- a/worker/music.py +++ b/worker/music.py @@ -7,11 +7,12 @@ class Ans(StdAns): return '不加参数是坏文明!' # 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' + url = 'http://inuyasha.love:8001/search' params = { 'limit': 1, - 's':self.raw_msg['message'][6:], + 'keywords':self.raw_msg['message'][6:], } try: resp = requests.get(url=url,params=params).json()