Browse Source

update xigua

lierqiang 2 years ago
parent
commit
53412d6281
1 changed files with 2 additions and 1 deletions
  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