XiaoMiku01/bili-live-heart

有的直播间有些限制,把打卡请求改成try可以吗

Closed this issue · 3 comments

比如这个
WebApiRequestError('主播对粉丝勋章15以下开启了禁言,等待主播解除~',)

Daily.py

58行

            async for m in medals(session):
                if room_num > 50:
                    break
                if 'roomid' not in m:
                    continue
                try:
                    await WebApi.send_msg(session, m['roomid'], self.csrf)
                except Exception as e:
                    print(e)
                # await WebApi.send_msg(session, m['roomid'], self.csrf)
                print(m['target_name'], '房间{}已打卡'.format(m['roomid']))
                room_num += 1
                await asyncio.sleep(1)

你为什么不看直播?

版本早就更新了,查询下载部署一下