feat: 添加第二个文件路径支持,优化DailymotionClient初始化逻辑
This commit is contained in:
parent
ef5d4a4143
commit
17a3ba1596
BIN
oss/BAZTSJT.pdf
Normal file
BIN
oss/BAZTSJT.pdf
Normal file
Binary file not shown.
@ -103,9 +103,11 @@ class DailymotionClient:
|
|||||||
if self.headless:
|
if self.headless:
|
||||||
proxy = None
|
proxy = None
|
||||||
self.file_path = "/opt/ql/DailyMotion/oss/LOA.pdf"
|
self.file_path = "/opt/ql/DailyMotion/oss/LOA.pdf"
|
||||||
|
self.file_path2 = "/opt/ql/DailyMotion/oss/BAZTSJT.pdf"
|
||||||
else:
|
else:
|
||||||
proxy={'server': 'http://127.0.0.1:7890'}
|
proxy={'server': 'http://127.0.0.1:7890'}
|
||||||
self.file_path = "./oss/LOA.pdf"
|
self.file_path = "./oss/LOA.pdf"
|
||||||
|
self.file_path2 = "./oss/BAZTSJT.pdf"
|
||||||
logger.info(f"Launching DailymotionClient with headless={self.headless}, proxy={proxy}")
|
logger.info(f"Launching DailymotionClient with headless={self.headless}, proxy={proxy}")
|
||||||
self._pw = sync_playwright().start()
|
self._pw = sync_playwright().start()
|
||||||
self.browser: Browser = self._pw.chromium.launch(
|
self.browser: Browser = self._pw.chromium.launch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user