浏览代码

update xigua

lierqiang 2 年之前
父节点
当前提交
53412d6281
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      xigua/xigua_search/xigua_search.py

+ 2 - 1
xigua/xigua_search/xigua_search.py

@@ -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