|
@@ -147,13 +147,14 @@ class YLGXXSPScheduling:
|
|
|
"profile_mid": 0,
|
|
|
"session": f"youlegaoxiaoxiaoshipin-{int(time.time())}",
|
|
|
}
|
|
|
- flag = PiaoQuanPipeline(
|
|
|
+ rule_pipeline = PiaoQuanPipeline(
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
rule_dict=self.rule_dict,
|
|
|
env=self.env,
|
|
|
item=video_dict,
|
|
|
)
|
|
|
+ flag = rule_pipeline.process_item()
|
|
|
if flag:
|
|
|
video_dict["out_user_id"] = video_obj["data"].get("ownerId", 0)
|
|
|
video_dict["platform"] = self.platform
|
|
@@ -166,12 +167,10 @@ class YLGXXSPScheduling:
|
|
|
video_dict["publish_time"] = video_dict["publish_time_str"]
|
|
|
video_dict["video_url"] = video_obj["data"]["url"]
|
|
|
video_dict["avatar_url"] = "http:" + video_obj["data"]["avatar"]
|
|
|
- video_dict["cover_url"] = "http:" + video_obj["data"]["thumbUrl"]
|
|
|
- # print(json.dumps(video_dict, ensure_ascii=False, indent=4))
|
|
|
self.download_count += 1
|
|
|
self.mq.send_msg(video_dict)
|
|
|
AliyunLogger.logging(
|
|
|
- code="1000",
|
|
|
+ code="1002",
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|