|
@@ -492,8 +492,7 @@ class Person:
|
|
|
elif cls.download_rule(video_duration, video_width, video_height, video_play_cnt,
|
|
|
video_share_cnt) is False:
|
|
|
Common.logger(log_type).info("不满足基础门槛\n")
|
|
|
- elif any(word if word in video_title else False for word in
|
|
|
- cls.sensitive_words(log_type)) is True:
|
|
|
+ elif any(str(word) if str(word) in video_title else False for word in cls.sensitive_words(log_type)) is True:
|
|
|
Common.logger(log_type).info("视频已中敏感词:{}\n".format(video_title))
|
|
|
|
|
|
# 从云文档去重: 小时级_已下载表
|
|
@@ -714,5 +713,8 @@ class Person:
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
person = Person()
|
|
|
- person.get_videos_from_follow('person')
|
|
|
+ # person.get_videos_from_follow('person')
|
|
|
+ # word_list = person.sensitive_words('person')
|
|
|
+ # for word in word_list:
|
|
|
+ # print(f"{str(word)} ,{type(str(word))}")
|
|
|
pass
|