diff --git a/report_video.py b/report_video.py index d56bef7..24f1e18 100644 --- a/report_video.py +++ b/report_video.py @@ -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()