Skip to content

Commit

Permalink
修改一些说明
Browse files Browse the repository at this point in the history
  • Loading branch information
xfgryujk committed Oct 11, 2020
1 parent 8cf4310 commit 0e060e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
### 二、公共服务器
请优先在本地使用,使用公共服务器会有更大的弹幕延迟,而且服务器故障时可能发生直播事故

* [第三方公共服务器](http://chat.bilisc.com/)
* [公共服务器](http://chat.bilisc.com/)
* [仅样式生成器](https://style.vtbs.moe/)

### 三、源代码版(自建服务器或在Windows以外平台)
Expand Down
5 changes: 2 additions & 3 deletions api/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,11 @@ async def send_test_message(self):

# 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:
Expand Down
4 changes: 0 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
(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'})
]

Expand Down

0 comments on commit 0e060e6

Please sign in to comment.