Commit
•
df02735
1
Parent(s):
969f6b4
Update api.py
Browse files
api.py
CHANGED
@@ -161,7 +161,7 @@ async def upload_video(meta:dict,cover_url:str):
|
|
161 |
buvid3=buvid3)
|
162 |
|
163 |
# 读取本地cover/0.jpg文件为字节数据作为cover
|
164 |
-
with open("
|
165 |
cover_data = f.read()
|
166 |
cover = bilibili_api.utils.picture.Picture.from_content(cover_data,"jpg")#直接读取本地图片content
|
167 |
|
|
|
161 |
buvid3=buvid3)
|
162 |
|
163 |
# 读取本地cover/0.jpg文件为字节数据作为cover
|
164 |
+
with open("cover/0.jpg", "rb") as f:
|
165 |
cover_data = f.read()
|
166 |
cover = bilibili_api.utils.picture.Picture.from_content(cover_data,"jpg")#直接读取本地图片content
|
167 |
|