This commit is contained in:
Your Name
2026-02-20 16:05:42 +08:00
parent cc06e48dff
commit e04883b6b3
11 changed files with 12728 additions and 15736 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

25
main.py
View File

@@ -889,14 +889,19 @@ class Pdd:
creator_tab.close()
return {"ok": False, "reason": "定时设置失败:未找到日期选择器"}
# 绑定任务
ele = creator_tab.ele('x://*[text()="点击绑定任务"]', timeout=3)
if ele:
ele.click()
creator_tab.ele('x://*[@placeholder="请输入个人主页链接"]').input(self.url)
time.sleep(1)
creator_tab.ele('x://*[text()="确认"]').click()
time.sleep(1)
# 绑定任务(仅在有达人链接时才点击)
if self.url and str(self.url).strip():
ele = creator_tab.ele('x://*[text()="点击绑定任务"]', timeout=3)
if ele:
ele.click()
creator_tab.ele('x://*[@placeholder="请输入个人主页链接"]').input(self.url)
time.sleep(1)
creator_tab.ele('x://*[text()="确认"]').click()
time.sleep(1)
else:
logger.warning("未找到绑定任务按钮")
else:
logger.info("未设置达人链接,跳过绑定任务")
ele = creator_tab.ele('x://*[text()="我已阅读并同意"]', timeout=3)
if ele:
@@ -1260,8 +1265,8 @@ class Pdd:
else:
logger.info(f" 步骤2: 跳过定时任务(未设置定时时间)")
# 3. 绑定任务(如果该视频有URL
if video_url:
# 3. 绑定任务(仅在有达人链接时才点击
if video_url and str(video_url).strip():
logger.info(f" 步骤3: 绑定任务...")
logger.info(f" 绑定URL: {video_url[:50]}...")
try: