|
@@ -89,6 +89,9 @@ class BSZF:
|
|
if "video_url" not in feeds[i]:
|
|
if "video_url" not in feeds[i]:
|
|
video_url = "0"
|
|
video_url = "0"
|
|
Common.crawler_log().info("video_url:不存在")
|
|
Common.crawler_log().info("video_url:不存在")
|
|
|
|
+ elif ".mp4" not in feeds[i]["video_url"]:
|
|
|
|
+ video_url = "0"
|
|
|
|
+ Common.crawler_log().info("video_url:不存在")
|
|
else:
|
|
else:
|
|
video_url = feeds[i]["video_url"]
|
|
video_url = feeds[i]["video_url"]
|
|
Common.crawler_log().info("video_url:{}".format(video_url))
|
|
Common.crawler_log().info("video_url:{}".format(video_url))
|
|
@@ -145,6 +148,7 @@ class BSZF:
|
|
video_ids = Common.read_txt("benshanzhufu_videoid.txt")
|
|
video_ids = Common.read_txt("benshanzhufu_videoid.txt")
|
|
if video_id in [p_id.strip() for p_id in video_ids]:
|
|
if video_id in [p_id.strip() for p_id in video_ids]:
|
|
Common.crawler_log().info("该视频已下载:{}".format(video_title))
|
|
Common.crawler_log().info("该视频已下载:{}".format(video_title))
|
|
|
|
+ pass
|
|
else:
|
|
else:
|
|
Common.crawler_log().info("该视频未下载:{}".format(video_title))
|
|
Common.crawler_log().info("该视频未下载:{}".format(video_title))
|
|
|
|
|