ohli24 api update 2023.01.18(01.)

anilife api update 2023.01.18(02-03)
This commit is contained in:
2023-01-28 20:10:41 +09:00
parent d6aa3ff42b
commit 4527e54647

View File

@@ -1,4 +1,5 @@
import os import os
import subprocess
import sys import sys
import threading import threading
import traceback import traceback
@@ -579,6 +580,9 @@ class LogicAniLife(LogicModuleBase):
return vod_url return vod_url
except Exception as e: except Exception as e:
logger.error("Exception:%s", e) logger.error("Exception:%s", e)
result = subprocess.run(["playwright", "install"], stdout=subprocess.PIPE, text=True)
print(result.stdout)
logger.error(traceback.format_exc()) logger.error(traceback.format_exc())
finally: finally:
await browser.close() await browser.close()