Commit 918a37ab authored by zhanglu's avatar zhanglu

直播接口替换

parent 45ee127c
...@@ -72,6 +72,9 @@ class LiveFormat(BaseFormat): ...@@ -72,6 +72,9 @@ class LiveFormat(BaseFormat):
def format_feed_card(self, lives) -> LiveList: def format_feed_card(self, lives) -> LiveList:
if "channels_info" in lives:
lives = lives["channels_info"]
res: List[LiveInfo] = [] res: List[LiveInfo] = []
for item in lives: for item in lives:
live = self.format_live(info=item) live = self.format_live(info=item)
......
...@@ -33,7 +33,7 @@ async def live_list_by_ids(ctx: Context, request: LiveListRequest) -> LiveList: ...@@ -33,7 +33,7 @@ async def live_list_by_ids(ctx: Context, request: LiveListRequest) -> LiveList:
if not request.live_ids: if not request.live_ids:
return LiveList(lives=[]) return LiveList(lives=[])
res = (await get_current_rpc_invoker()["mimas/live/get_clannels_url/audience"]( res = (await get_current_rpc_invoker()["live/get_clannels_url/audience"](
ids=request.live_ids, ids=request.live_ids,
)).unwrap() )).unwrap()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment