Explorar o código

update get video feeds

wangkun %!s(int64=3) %!d(string=hai) anos
pai
achega
1abd05df93
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main/download.py

+ 1 - 1
main/download.py

@@ -174,7 +174,7 @@ class BSZF:
                         else:
                         else:
                             if video_id in [content.split(" + ")[1] for content in contents]:
                             if video_id in [content.split(" + ")[1] for content in contents]:
                                 Common.crawler_log().info("该视频已在 benshanzhufu_feeds.txt 中:{}".format(video_title))
                                 Common.crawler_log().info("该视频已在 benshanzhufu_feeds.txt 中:{}".format(video_title))
-                            elif video_id == "0" or video_url == "0" or video_title != "0":
+                            elif video_id == "0" or video_url == "0" or video_title == "0":
                                 Common.crawler_log().info("视频不存在")
                                 Common.crawler_log().info("视频不存在")
                             else:
                             else:
                                 basic_time = int(time.time())
                                 basic_time = int(time.time())