feat: 添加report_follow_up方法以处理视频侵权报告的后续状态

This commit is contained in:
晓丰 2025-06-12 23:08:12 +08:00
parent da353920ae
commit 239b16b938

View File

@ -266,6 +266,24 @@ class DailymotionClient:
return file_path, report_id, subsequent_status, timestamp
@require_login
def report_follow_up(self, report_id: str):
txt = "I am the authorized agent of Beijing iQIYI Technology Co., Ltd., responsible for dealing with unauthorized overseas distribution of pirated videos of our works.We have confirmed that the above links contain infringing content and we insist on requesting to takedown. Thank you!"
self.page.goto("https://faq.dailymotion.com/hc/en-us/requests/{}".format(report_id), timeout=30000)
self.page.wait_for_load_state("networkidle", timeout=3000)
status_raw = self.page.locator("span.status-label").text_content()
subsequent_status = status_raw.strip().lower() if status_raw else None
if "awaiting your reply" in subsequent_status:
pass
# TODO: 处理其他状态
elif "open" in subsequent_status:
pass
# 处理 Open 状态
elif "solved" in subsequent_status:
# 处理 Solved 状态
return
def close(self):
try:
self.page.close()