From 264c20869743c3c8b416de19496d48a21197b5e1 Mon Sep 17 00:00:00 2001 From: zzlwd <7829265+wsndshx@users.noreply.github.com> Date: Fri, 16 Jun 2023 18:02:07 +0800 Subject: [PATCH] Update ADC_function.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使得程序从配置文件中读取用户配置的翻译引擎 --- ADC_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADC_function.py b/ADC_function.py index 592ab2b..a5b39f5 100644 --- a/ADC_function.py +++ b/ADC_function.py @@ -302,7 +302,7 @@ def get_html_by_scraper(url: str = None, cookies: dict = None, ua: str = None, r def translate( src: str, target_language: str = config.getInstance().get_target_language(), - engine: str = "google-free", + engine: str = config.getInstance().get_translate_engine(), app_id: str = "", key: str = "", delay: int = 0,