diff --git a/DB.py b/DB.py index 96d8544..6f90290 100644 --- a/DB.py +++ b/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 = "", diff --git a/report_video.py b/report_video.py index 9e9185e..a33cd0f 100644 --- a/report_video.py +++ b/report_video.py @@ -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 {}