|
@@ -314,7 +314,10 @@ class JixiangxingfuRecommend:
|
|
|
@classmethod
|
|
|
def download_publish(cls, log_type, crawler, video_dict, env, driver: WebDriver):
|
|
|
# 下载视频
|
|
|
- Common.download_method(log_type=log_type, crawler=crawler, text='video', title=video_dict['video_title'], url=video_dict['video_url'])
|
|
|
+ download_res = Common.download_method(log_type=log_type, crawler=crawler, text='video', title=video_dict['video_title'], url=video_dict['video_url'])
|
|
|
+ if download_res is False:
|
|
|
+ driver.press_keycode(AndroidKey.BACK)
|
|
|
+ return
|
|
|
ffmpeg_dict = Common.ffmpeg(log_type, crawler, f"./{crawler}/videos/{video_dict['video_title']}/video.mp4")
|
|
|
if ffmpeg_dict is None:
|
|
|
md_title = md5(video_dict['video_title'].encode('utf8')).hexdigest()
|