Skip to content

Commit

Permalink
perf: 更新douyin直播消息callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Oct 25, 2024
1 parent cc45729 commit c9123b6
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions f2/apps/douyin/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1782,13 +1782,21 @@ async def fetch_live_danmaku(
"WebcastRoomDataSyncMessage": DouyinWebSocketCrawler.WebcastRoomDataSyncMessage,
"WebcastInRoomBannerMessage": DouyinWebSocketCrawler.WebcastInRoomBannerMessage,
"WebcastLinkMessage": DouyinWebSocketCrawler.WebcastLinkMessage,
# TODO: WebcastLinkMicArmiesMethod
# TODO: WebcastLinkmicPlayModeUpdateScoreMessage
# TODO: WebcastSandwichBorderMessage
# TODO: WebcastLuckyBoxTempStatusMessage
# TODO: WebcastLinkMicBattleMethod
# TODO: WebcastBattleTeamTaskMessage
"WebcastBattleTeamTaskMessage": DouyinWebSocketCrawler.WebcastBattleTeamTaskMessage,
"WebcastHotChatMessage": DouyinWebSocketCrawler.WebcastHotChatMessage,
# TODO: 以下消息类型暂未实现
# WebcastLinkMicArmiesMethod
# WebcastLinkmicPlayModeUpdateScoreMessage
# WebcastSandwichBorderMessage
# WebcastLuckyBoxTempStatusMessage
# WebcastLotteryEventMessage
# WebcastLotteryEventNewMessage
# WebcastDecorationUpdateMessage
# WebcastDecorationModifyMethod
# WebcastLinkSettingNotifyMessage
# WebcastLinkMicBattleMethod
}

async with DouyinWebSocketCrawler(self.kwargs, callbacks=wss_callbacks) as wss:
signature = DouyinWebcastSignature(
ClientConfManager.user_agent()
Expand Down

0 comments on commit c9123b6

Please sign in to comment.