From 32a15d27ce1f82d89eb90b738ec605f01656fe1c Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Wed, 4 Jun 2025 21:10:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E4=BB=A5=E4=BE=BF=E4=BA=8E?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E5=92=8C=E9=97=AE=E9=A2=98=E8=BF=BD=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report.py | 1 + report_video.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/report.py b/report.py index ee5e175..aec85c6 100644 --- a/report.py +++ b/report.py @@ -19,4 +19,5 @@ while True: db.update_fight_record_status(li['id'], 2, info) db.flush() except Exception as e: + logger.logger.error(f"ID:{li['id']}, e:{e}") db.update_fight_record_status(li['id'],3,str(e)) diff --git a/report_video.py b/report_video.py index 2a69aca..9602876 100644 --- a/report_video.py +++ b/report_video.py @@ -152,7 +152,7 @@ class DailymotionClient: time.sleep(1) self.page.get_by_role("button", name="Submit").click() time.sleep(2) - file_path = f'screenshots/{str(int(time.time()))}_{title}_{link}.png' + file_path = f'screenshots/{str(int(time.time()))}_{title}_{link.split("/")[-1]}.png' self.page.screenshot(path=file_path) if self.page.url != self.url: self.page.goto(self.url, timeout=30000)