lierqiang před 2 roky
rodič
revize
53412d6281
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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