|
@@ -719,7 +719,8 @@ class Search:
|
|
|
except Exception as e:
|
|
|
Common.logger(log_type, crawler).error(f'视频:{item_id},没有获取到视频详情,原因:{e}')
|
|
|
continue
|
|
|
-
|
|
|
+ if not video_dict:
|
|
|
+ continue
|
|
|
if cls.repeat_video(log_type, crawler, video_dict['video_id'], env, machine) != 0:
|
|
|
Common.logger(log_type, crawler).info(f'gid:{video_dict["video_id"]},视频已下载,无需重复下载\n')
|
|
|
continue
|