Skip to content

Commit

Permalink
ref(config): 重置索引器为默认内置索引器
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuyelin committed Jan 8, 2024
1 parent 3595ed7 commit 2500ff7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 2500ff7

Please sign in to comment.