refactor: 优化视频标题去重逻辑并排序

This commit is contained in:
晓丰 2025-07-11 20:21:21 +08:00
parent 35cd14ba02
commit 023b32fbd6

View File

@ -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 {}