修改一些说明

This commit is contained in:
John Smith 2020-10-11 13:00:57 +08:00
parent 8cf4310152
commit 0e060e61fa
3 changed files with 3 additions and 8 deletions

View File

@ -34,7 +34,7 @@
### 二、公共服务器
请优先在本地使用,使用公共服务器会有更大的弹幕延迟,而且服务器故障时可能发生直播事故
* [第三方公共服务器](http://chat.bilisc.com/)
* [公共服务器](http://chat.bilisc.com/)
* [仅样式生成器](https://style.vtbs.moe/)
### 三、源代码版自建服务器或在Windows以外平台

View File

@ -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:

View File

@ -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'})
]