refactor: 优化视频标题去重逻辑并排序
This commit is contained in:
parent
35cd14ba02
commit
023b32fbd6
@ -204,6 +204,7 @@ class DailymotionClient:
|
|||||||
|
|
||||||
@require_login
|
@require_login
|
||||||
def process_ticket(self, lis: list):
|
def process_ticket(self, lis: list):
|
||||||
|
|
||||||
titles = "\r\n"
|
titles = "\r\n"
|
||||||
links = ""
|
links = ""
|
||||||
ids= []
|
ids= []
|
||||||
@ -220,7 +221,10 @@ class DailymotionClient:
|
|||||||
links += li['link'] + ",\r\n"
|
links += li['link'] + ",\r\n"
|
||||||
logger.info(f"Processing ticket for title: {titles}, link: {links}")
|
logger.info(f"Processing ticket for title: {titles}, link: {links}")
|
||||||
self.page.goto(self.url, timeout=3000)
|
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.
|
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
|
1) please help remove these videos
|
||||||
2) The drama series titles are {}
|
2) The drama series titles are {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user