mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-06-01 15:10:14 +00:00
fix bug
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
"SiteStatistic": {
|
||||
"name": "站点数据统计",
|
||||
"description": "自动统计和展示站点数据。",
|
||||
"version": "1.2",
|
||||
"version": "1.3",
|
||||
"icon": "statistic.png",
|
||||
"author": "lightolly",
|
||||
"level": 2
|
||||
@@ -354,7 +354,7 @@
|
||||
"LinkMonitor": {
|
||||
"name": "实时硬链接",
|
||||
"description": "监控目录文件变化,实时硬链接。",
|
||||
"version": "1.0",
|
||||
"version": "1.1",
|
||||
"icon": "Linkace_C.png",
|
||||
"author": "jxxghp",
|
||||
"level": 1
|
||||
|
||||
@@ -51,7 +51,7 @@ class LinkMonitor(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Linkace_C.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.0"
|
||||
plugin_version = "1.1"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -241,7 +241,7 @@ class LinkMonitor(_PluginBase):
|
||||
# 遍历所有监控目录
|
||||
for mon_path in self._dirconf.keys():
|
||||
# 遍历目录下所有文件
|
||||
for file_path in SystemUtils.list_files(Path(mon_path), ['*']):
|
||||
for file_path in SystemUtils.list_files(Path(mon_path), ['.*']):
|
||||
self.__handle_file(event_path=str(file_path), mon_path=mon_path)
|
||||
logger.info("全量实时硬链接完成!")
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class SiteStatistic(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "statistic.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.2"
|
||||
plugin_version = "1.3"
|
||||
# 插件作者
|
||||
plugin_author = "lightolly"
|
||||
# 作者主页
|
||||
@@ -377,7 +377,7 @@ class SiteStatistic(_PluginBase):
|
||||
# 昨天数据
|
||||
yesterday_sites_data: Dict[str, Dict[str, Any]] = {}
|
||||
# 获取最近所有数据
|
||||
data_list: List[PluginData] = self.get_data()
|
||||
data_list: List[PluginData] = self.get_data(key=None)
|
||||
if not data_list:
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user