feat: 添加getreport_video方法以从数据库中检索视频记录
This commit is contained in:
parent
34208a6400
commit
b0ea3b54f7
15
DB.py
15
DB.py
@ -344,6 +344,21 @@ class DBVidcon:
|
||||
"""
|
||||
self.cursor.execute(sql)
|
||||
return self.cursor.fetchall()
|
||||
@mysql_retry()
|
||||
def getreprot_video(self):
|
||||
sql = """
|
||||
SELECT
|
||||
id,
|
||||
name_title,
|
||||
link
|
||||
FROM
|
||||
sh_dm_fight_records
|
||||
WHERE
|
||||
id = %s
|
||||
LIMIT 1
|
||||
"""
|
||||
self.cursor.execute(sql, (id,))
|
||||
return self.cursor.fetchone()
|
||||
|
||||
@mysql_retry()
|
||||
def update_fight_record_status(self, id: int, report_id: int, new_status: int, errinfo: str = "",
|
||||
|
@ -202,7 +202,6 @@ class DailymotionClient:
|
||||
# titles = '\r\n'.join(title)
|
||||
logger.info(f"Processing ticket for title: {title}, link: {link}")
|
||||
self.page.goto(self.url, timeout=3000)
|
||||
self.page.wait_for_load_state("networkidle", timeout=30000)
|
||||
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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user