From 023b32fbd6141be39c75f34c94480074a8d23e28 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Fri, 11 Jul 2025 20:21:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=A0=87=E9=A2=98=E5=8E=BB=E9=87=8D=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=B9=B6=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report_video.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/report_video.py b/report_video.py index 393799e..a87d482 100644 --- a/report_video.py +++ b/report_video.py @@ -204,6 +204,7 @@ class DailymotionClient: @require_login def process_ticket(self, lis: list): + titles = "\r\n" links = "" ids= [] @@ -220,7 +221,10 @@ class DailymotionClient: links += li['link'] + ",\r\n" logger.info(f"Processing ticket for title: {titles}, link: {links}") self.page.goto(self.url, timeout=3000) - titles = list(set(titles.strip(",\r\n"))) # 去重 + titles_list = [title.strip() for title in titles.split(',')] + unique_titles = list(set(titles_list)) + unique_titles.sort() + titles ="".join(unique_titles) # 去重 description = """We request that you take immediate actionto stop the infringing activity, take steps to ensure that iQIYI Content is notre-posted on, re-linked to, or otherwise available through your site. Pleaseinform us of the actions you have taken and their results. 1) please help remove these videos 2) The drama series titles are {}