feat: 添加第二个文件路径支持,优化DailymotionClient初始化逻辑

This commit is contained in:
晓丰 2025-06-25 20:56:00 +08:00
parent ef5d4a4143
commit 17a3ba1596
2 changed files with 2 additions and 0 deletions

BIN
oss/BAZTSJT.pdf Normal file

Binary file not shown.

View File

@ -103,9 +103,11 @@ class DailymotionClient:
if self.headless:
proxy = None
self.file_path = "/opt/ql/DailyMotion/oss/LOA.pdf"
self.file_path2 = "/opt/ql/DailyMotion/oss/BAZTSJT.pdf"
else:
proxy={'server': 'http://127.0.0.1:7890'}
self.file_path = "./oss/LOA.pdf"
self.file_path2 = "./oss/BAZTSJT.pdf"
logger.info(f"Launching DailymotionClient with headless={self.headless}, proxy={proxy}")
self._pw = sync_playwright().start()
self.browser: Browser = self._pw.chromium.launch(