rogerxavier
commited on
Commit
•
beee836
1
Parent(s):
6fb4f91
Update api.py
Browse files
api.py
CHANGED
@@ -165,7 +165,10 @@ async def upload_video(meta:dict,cover_url:str):
|
|
165 |
bili_jct=bili_jct,
|
166 |
buvid3=buvid3)
|
167 |
|
168 |
-
cover = bilibili_api.utils.picture.Picture.from_url(cover_url)
|
|
|
|
|
|
|
169 |
|
170 |
|
171 |
page = video_uploader.VideoUploaderPage(path='mp4_out/output_video.mp4', title=meta['title'], description=meta['desc'])
|
|
|
165 |
bili_jct=bili_jct,
|
166 |
buvid3=buvid3)
|
167 |
|
168 |
+
#cover = bilibili_api.utils.picture.Picture.from_url(cover_url)
|
169 |
+
cover_url = "https://rogerxavier-moviepy-with-manga-test.hf.space/cover.jpg"
|
170 |
+
cover = bilibili_api.utils.picture.Picture.from_url(cover_url)#准备用cover/0.jpg作为图片
|
171 |
+
|
172 |
|
173 |
|
174 |
page = video_uploader.VideoUploaderPage(path='mp4_out/output_video.mp4', title=meta['title'], description=meta['desc'])
|