Skip to content

Commit 32445c3

Browse files
committed
[0.8.0] fix title api change
1 parent 0de517e commit 32445c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/workers/title/title_update.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ def __init__(self, parent: "StreamConfigPanel", /, title):
2121
@Slot()
2222
@run_wrapper
2323
def run(self, /) -> None:
24-
url = "https://api.live.bilibili.com/room/v1/Room/updateV2"
24+
url = "https://api.live.bilibili.com/xlive/app-blink/v1/preLive/UpdatePreLiveInfo"
2525
title_data = {
2626
"csrf": app_state.cookies_dict["bili_jct"],
2727
"csrf_token": app_state.cookies_dict["bili_jct"],
28+
"mobi_app": "pc_link",
2829
"room_id": app_state.room_info["room_id"],
2930
"title": self.title,
3031
}
@@ -37,6 +38,7 @@ def run(self, /) -> None:
3738
self.logger.info(f"updateV2 Result: {response}")
3839
if response["code"] != 0:
3940
raise TitleUpdateError(response["message"])
41+
print(response)
4042
self.title = response["data"]["audit_info"]["audit_title"]
4143
app_state.room_info["title"] = self.title
4244
if self.title in app_state.room_info["recent_title"]:

0 commit comments

Comments
 (0)