v0.6.11: Add curl_cffi auto-install and fix URL check

This commit is contained in:
2026-01-07 15:27:04 +09:00
parent c532ffaef8
commit e026247cbf
4 changed files with 21 additions and 2 deletions

View File

@@ -114,6 +114,19 @@ from plugin import *
import os
import traceback
from flask import render_template
import subprocess
import sys
# curl_cffi 자동 설치 루틴
try:
import curl_cffi
except ImportError:
try:
P.logger.info("curl_cffi not found. Attempting to install...")
subprocess.check_call([sys.executable, "-m", "pip", "install", "curl-cffi"])
P.logger.info("curl_cffi installed successfully.")
except Exception as e:
P.logger.error(f"Failed to install curl_cffi: {e}")
class LogicLog(PluginModuleBase):
def __init__(self, P):