rogerxavier
commited on
Commit
•
cb43e30
1
Parent(s):
a3a1f0c
Update api.py
Browse files
api.py
CHANGED
@@ -166,8 +166,8 @@ async def upload_video(meta:dict,cover_url:str):
|
|
166 |
buvid3=buvid3)
|
167 |
|
168 |
#cover = bilibili_api.utils.picture.Picture.from_url(cover_url)
|
169 |
-
cover_url = "https://rogerxavier-moviepy-with-manga-
|
170 |
-
cover = bilibili_api.utils.picture.Picture.from_url(cover_url)#准备用cover
|
171 |
|
172 |
|
173 |
|
|
|
166 |
buvid3=buvid3)
|
167 |
|
168 |
#cover = bilibili_api.utils.picture.Picture.from_url(cover_url)
|
169 |
+
cover_url = "https://rogerxavier-moviepy-with-manga-cover.hf.space/cover.jpg"#这里使用另一个space暂存从本地请求得到的cover,从而摆脱异步问题
|
170 |
+
cover = bilibili_api.utils.picture.Picture.from_url(cover_url)#准备用space暂存的图片作为cover
|
171 |
|
172 |
|
173 |
|