|
@@ -158,6 +158,9 @@ class VideoProcessor:
|
|
|
if new_video_path:
|
|
|
if video_ending and video_ending != 'None':
|
|
|
new_video_path = cls.handle_video_ending(new_video_path, video_ending, old_title, pw_random_id, video_path_url, mark, task_mark, url, name, video_share, zm, voice)
|
|
|
+ if new_video_path == None:
|
|
|
+ cls.remove_files(video_path_url)
|
|
|
+ return
|
|
|
else:
|
|
|
if video_share and video_share != 'None':
|
|
|
new_video_path = FFmpeg.single_video(new_video_path, video_path_url, zm)
|
|
@@ -273,8 +276,7 @@ class VideoProcessor:
|
|
|
Feishu.insert_columns("ILb4sa0LahddRktnRipcu2vQnLb", sheet, "ROWS", 1, 2)
|
|
|
time.sleep(0.5)
|
|
|
Feishu.update_values("ILb4sa0LahddRktnRipcu2vQnLb", sheet, "A2:Z2", values)
|
|
|
-
|
|
|
-
|
|
|
+ cls.remove_files(video_path_url)
|
|
|
except Exception as e:
|
|
|
Common.logger(mark).warning(f"{name}的{task_mark}任务处理失败:{e}")
|
|
|
cls.remove_files(video_path_url)
|