Skip to content

Commit

Permalink
Merge pull request #506 from Nemo2011/main
Browse files Browse the repository at this point in the history
fix: video_updater
  • Loading branch information
z0z0r4 authored Sep 15, 2023
2 parents 94c9803 + 5ad6310 commit 18a206f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOGS/v16.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v16.1.0 2023/09/11

## ** 新增展会模块 **

- fix: 修复弹幕读取和 httpx.AsyncClient 关闭错误问题 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/480
- fix: 通过 sessdata 获取 dedeuserid by @z0z0r4 in https://github.com/Nemo2011/bilibili-api/pull/482
- feat: 自动获取 uid by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/485
- fix: 更换直播弹幕获取接口后强制凭证需要提供 sessdata 和 buvid3 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/489
- feat: bilibili-api-dev 库自动发布 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/487
- fix: 490 漏洞 dynamic模块url固定无法改参 by @Drelf2018 in https://github.com/Nemo2011/bilibili-api/pull/491
- feat: 增加会员购会展相关接口 by @LittleBlacklb in https://github.com/Nemo2011/bilibili-api/pull/492

# v16.0.0 2023/09/01

## ** 删除相册模块,新增放映室模块 **
Expand Down
8 changes: 3 additions & 5 deletions bilibili_api/video_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,12 +739,11 @@ async def _submit(self, videos: list, cover_url: str = "") -> dict:

try:
params = {"csrf": self.credential.bili_jct}
data = json.dumps(meta)
headers = {"content-type": "application/json"}
resp = (
await Api(**api, credential=self.credential, no_csrf=True)
.update_params(**params)
.update_data(**data)
.update_data(**meta)
.update_headers(**headers)
.result
)
Expand Down Expand Up @@ -929,12 +928,11 @@ async def _change_cover(self) -> None:

async def _submit(self):
api = _API["edit"]
datas = self.meta
datas["csrf"] = self.credential.bili_jct
data = self.meta
data["csrf"] = self.credential.bili_jct
self.dispatch(VideoEditorEvents.PRE_SUBMIT.value)
try:
params = ({"csrf": self.credential.bili_jct, "t": int(time.time())},)
data = (json.dumps(datas),)
headers = {
"content-type": "application/json;charset=UTF-8",
"referer": "https://member.bilibili.com",
Expand Down

0 comments on commit 18a206f

Please sign in to comment.