Skip to content

Commit 18a206f

Browse files
authored
Merge pull request #506 from Nemo2011/main
fix: video_updater
2 parents 94c9803 + 5ad6310 commit 18a206f

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

CHANGELOGS/v16.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# v16.1.0 2023/09/11
2+
3+
## ** 新增展会模块 **
4+
5+
- fix: 修复弹幕读取和 httpx.AsyncClient 关闭错误问题 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/480
6+
- fix: 通过 sessdata 获取 dedeuserid by @z0z0r4 in https://github.com/Nemo2011/bilibili-api/pull/482
7+
- feat: 自动获取 uid by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/485
8+
- fix: 更换直播弹幕获取接口后强制凭证需要提供 sessdata 和 buvid3 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/489
9+
- feat: bilibili-api-dev 库自动发布 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/487
10+
- fix: 490 漏洞 dynamic模块url固定无法改参 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/491
11+
- feat: 增加会员购会展相关接口 by @LittleBlacklb in https://github.com/Nemo2011/bilibili-api/pull/492
12+
113
# v16.0.0 2023/09/01
214

315
## ** 删除相册模块,新增放映室模块 **

bilibili_api/video_uploader.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,11 @@ async def _submit(self, videos: list, cover_url: str = "") -> dict:
739739

740740
try:
741741
params = {"csrf": self.credential.bili_jct}
742-
data = json.dumps(meta)
743742
headers = {"content-type": "application/json"}
744743
resp = (
745744
await Api(**api, credential=self.credential, no_csrf=True)
746745
.update_params(**params)
747-
.update_data(**data)
746+
.update_data(**meta)
748747
.update_headers(**headers)
749748
.result
750749
)
@@ -929,12 +928,11 @@ async def _change_cover(self) -> None:
929928

930929
async def _submit(self):
931930
api = _API["edit"]
932-
datas = self.meta
933-
datas["csrf"] = self.credential.bili_jct
931+
data = self.meta
932+
data["csrf"] = self.credential.bili_jct
934933
self.dispatch(VideoEditorEvents.PRE_SUBMIT.value)
935934
try:
936935
params = ({"csrf": self.credential.bili_jct, "t": int(time.time())},)
937-
data = (json.dumps(datas),)
938936
headers = {
939937
"content-type": "application/json;charset=UTF-8",
940938
"referer": "https://member.bilibili.com",

0 commit comments

Comments
 (0)