diff --git a/initializer.py b/initializer.py index 3a8d773f..c50240c7 100644 --- a/initializer.py +++ b/initializer.py @@ -96,6 +96,13 @@ def update_config(): 'ocr_service_url': '', } overwrite_cofig = True + + # 索引器重置为builtin + search_indexer = _config.get("pt", {}).get("search_indexer") + if not search_indexer or not (isinstance(search_indexer, str) and search_indexer == "builtin"): + _config['pt']['search_indexer'] = "builtin" + overwrite_cofig = True + # 字幕兼容旧配置 try: subtitle = Config().get_config('subtitle') or {}