Skip to content

Commit

Permalink
Merge pull request #709 from valkjsaaa/patch-2
Browse files Browse the repository at this point in the history
Pass source in meta to dict for upload
  • Loading branch information
z0z0r4 authored Mar 11, 2024
2 parents 71acda9 + 6b01816 commit cba07a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bilibili_api/video_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,14 +589,14 @@ def __dict__(self) -> dict:
"open": 0,
"lan": "",
}, # 莫名其妙没法上传 srt 字幕,显示格式错误,不校验
"subtitle": self.subtitle,
"neutral_mark": self.neutral_mark, # 不知道能不能随便写文本
"dolby": 1 if self.dolby else 0,
"lossless_music": 1 if self.lossless_music else 0,
"up_selection_reply": self.up_close_reply,
"up_close_reply": self.up_close_reply,
"up_close_danmu": self.up_close_danmu,
"web_os": 1, # const 1
"source": self.source
}
for k in copy(meta).keys():
if meta[k] is None:
Expand Down

0 comments on commit cba07a9

Please sign in to comment.