mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix total_cnt
This commit is contained in:
@@ -25,6 +25,8 @@ HomePage services.yaml配置
|
||||
label: 公网ip地址
|
||||
- field: expire_time
|
||||
label: 证书过期日期
|
||||
- field: total_cnt
|
||||
label: 总配置数量
|
||||
# - field: connections
|
||||
# label: 链接数
|
||||
# - field: trafficIn
|
||||
|
||||
@@ -116,6 +116,7 @@ class Lucky(_PluginBase):
|
||||
expire_time = expire_time.split(' ')[0]
|
||||
|
||||
logging.info(
|
||||
f"Proxy Rules Total: {len(rules)}\n"
|
||||
f"Proxy Rules Enabled: {enabled_cnt}\n"
|
||||
f"Proxy Rules Closed: {closed_cnt}\n"
|
||||
f"Connections: {connections}\n"
|
||||
@@ -125,6 +126,7 @@ class Lucky(_PluginBase):
|
||||
f"SSL Expire Time: {expire_time}\n")
|
||||
|
||||
return {
|
||||
'total_cnt': len(rules),
|
||||
'enabled_cnt': enabled_cnt,
|
||||
'closed_cnt': closed_cnt,
|
||||
'ipaddr': ipaddr,
|
||||
@@ -152,7 +154,7 @@ class Lucky(_PluginBase):
|
||||
"path": "/lucky",
|
||||
"endpoint": self.lucky,
|
||||
"methods": ["GET"],
|
||||
"summary": "Lucky",
|
||||
"summary": "Lucky HomePage自定义API",
|
||||
"description": "Lucky",
|
||||
}]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user