|
@@ -272,10 +272,10 @@ class KuaiShou:
|
|
|
elif any(word if word in kuaishou_title else False for word in cls.sensitive_words()) is True:
|
|
|
Common.logger().info("视频已中敏感词:{}".format(kuaishou_title))
|
|
|
# 从 云文档 去重:https://w42nne6hzg.feishu.cn/sheets/shtcnp4SaJt37q6OOOrYzPMjQkg?sheet=3b207c
|
|
|
- elif photo_id in [j for i in Feishu.get_values_batch("3b207c") for j in i]:
|
|
|
+ elif photo_id in [j for m in Feishu.get_values_batch("3b207c") for j in m]:
|
|
|
Common.logger().info("该视频已下载:{}", video_title)
|
|
|
# 从 云文档 去重:https://w42nne6hzg.feishu.cn/sheets/shtcnp4SaJt37q6OOOrYzPMjQkg?sheet=Zt2PGQ
|
|
|
- elif photo_id in [j for i in Feishu.get_values_batch("Zt2PGQ") for j in i]:
|
|
|
+ elif photo_id in [j for n in Feishu.get_values_batch("Zt2PGQ") for j in n]:
|
|
|
Common.logger().info("该视频已在feeds中:{}", video_title)
|
|
|
else:
|
|
|
Common.logger().info("该视频未下载,添加至feeds中:{}".format(video_title))
|
|
@@ -361,7 +361,7 @@ class KuaiShou:
|
|
|
if download_photo_id is None or download_video_title is None or download_video_play_cnt is None:
|
|
|
Common.logger().warning("空行,略过")
|
|
|
# 去重
|
|
|
- elif download_photo_id in [j for i in Feishu.get_values_batch("3b207c") for j in i]:
|
|
|
+ elif download_photo_id in [j for m in Feishu.get_values_batch("3b207c") for j in m]:
|
|
|
Common.logger().info("该视频已下载:{}", download_video_title)
|
|
|
# 下载规则
|
|
|
elif cls.kuaishou_download_rule(
|