From b43e8af97f615844a1db60d783e3c9238a8a30cd Mon Sep 17 00:00:00 2001 From: SiHuan Date: Sun, 26 Apr 2020 21:54:38 +0800 Subject: [PATCH] music use local api --- worker/music.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/music.py b/worker/music.py index 0f6dbe5..2979974 100644 --- a/worker/music.py +++ b/worker/music.py @@ -7,11 +7,11 @@ 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' params = { 'limit': 1, - 'from': 'music', - 's':self.raw_msg['message'][6:], + 'keywords':self.raw_msg['message'][6:], } try: resp = requests.get(url=url,params=params).json()