From 0e060e61fad1dddc2533481f88cab08ba1522f9a Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 11 Oct 2020 13:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9B=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- api/chat.py | 5 ++--- main.py | 4 ---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7c34d92..2caf703 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ ### 二、公共服务器 请优先在本地使用,使用公共服务器会有更大的弹幕延迟,而且服务器故障时可能发生直播事故 -* [第三方公共服务器](http://chat.bilisc.com/) +* [公共服务器](http://chat.bilisc.com/) * [仅样式生成器](https://style.vtbs.moe/) ### 三、源代码版(自建服务器或在Windows以外平台) diff --git a/api/chat.py b/api/chat.py index a3a9a74..b2d5df0 100644 --- a/api/chat.py +++ b/api/chat.py @@ -521,12 +521,11 @@ class ChatHandler(tornado.websocket.WebSocketHandler): # noinspection PyAbstractClass class RoomInfoHandler(api.base.ApiHandler): - _host_server_list_cache = [ - {'host': "broadcastlv.chat.bilibili.com", 'port': 2243, 'wss_port': 443, 'ws_port': 2244} - ] + _host_server_list_cache = blivedm.DEFAULT_DANMAKU_SERVER_LIST async def get(self): room_id = int(self.get_query_argument('roomId')) + logger.info('Client %s is getting room info %d', self.request.remote_ip, room_id) room_id, owner_uid = await self._get_room_info(room_id) host_server_list = await self._get_server_host_list(room_id) if owner_uid == 0: diff --git a/main.py b/main.py index 0ac0887..d035417 100644 --- a/main.py +++ b/main.py @@ -29,10 +29,6 @@ routes = [ (r'/api/room_info', api.chat.RoomInfoHandler), (r'/api/avatar_url', api.chat.AvatarHandler), - # TODO 兼容旧版,下版本移除 - (r'/server_info', api.main.ServerInfoHandler), - (r'/chat', api.chat.ChatHandler), - (r'/(.*)', api.main.MainHandler, {'path': WEB_ROOT, 'default_filename': 'index.html'}) ]