From 9e0dcd1ce20a533b631b80554ced0a962c7f37b3 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Tue, 15 Aug 2017 19:29:20 +0800 Subject: [PATCH] Fix anime index url --- commands/bilibili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/bilibili.py b/commands/bilibili.py index 7a3e3461..c3a0c6ed 100644 --- a/commands/bilibili.py +++ b/commands/bilibili.py @@ -29,7 +29,7 @@ def anime_index(_, ctx_msg, argv=None): core.echo('抱歉无法识别的输入的参数,下面将给出本季度的番剧~', ctx_msg) quarter = math.ceil(month / 3) - json = requests.get('http://bangumi.bilibili.com/web_api/season/index' + json = requests.get('http://bangumi.bilibili.com/web_api/season/index_global' '?page=1&page_size=20&version=0&is_finish=0' '&start_year=%d&quarter=%d&tag_id=&index_type=1&index_sort=0' % (year, quarter)).json() if json and json.get('result') and int(json['result'].get('count', 0)) > 0: