mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-10 23:11:47 +08:00
Improve comments for clarity
Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com>
This commit is contained in:
@@ -47,11 +47,11 @@ class CategoryHelper:
|
|||||||
with open(self._config_path, 'w', encoding='utf-8') as f:
|
with open(self._config_path, 'w', encoding='utf-8') as f:
|
||||||
f.write(HEADER_COMMENTS)
|
f.write(HEADER_COMMENTS)
|
||||||
yaml.dump(data, f, allow_unicode=True, sort_keys=False, default_flow_style=False)
|
yaml.dump(data, f, allow_unicode=True, sort_keys=False, default_flow_style=False)
|
||||||
# 触发 themoviedb CategoryHelper 重新加载配置
|
# 触发模块重新加载配置
|
||||||
themoviedb_module = ModuleManager().get_running_module("TheMovieDbModule")
|
themoviedb_module = ModuleManager().get_running_module("TheMovieDbModule")
|
||||||
if themoviedb_module and hasattr(themoviedb_module, 'category'):
|
if themoviedb_module and hasattr(themoviedb_module, 'category'):
|
||||||
themoviedb_module.category.init()
|
themoviedb_module.category.init()
|
||||||
logger.info("已触发 CategoryHelper 重新加载配置")
|
logger.info("已触发分类配置重新加载")
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Save category config failed: {e}")
|
logger.error(f"Save category config failed: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user