mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-06-06 07:26:47 +00:00
fix #241
This commit is contained in:
@@ -778,12 +778,13 @@
|
||||
"name": "Lucky",
|
||||
"description": "Lucky HomePage自定义API。",
|
||||
"labels": "工具",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"icon": "Lucky_A.png",
|
||||
"author": "thsrite",
|
||||
"level": 1,
|
||||
"v2": true,
|
||||
"history": {
|
||||
"v1.0.2": "修复问题",
|
||||
"v1.0.1": "支持Lucky最新版本获取ipv4。",
|
||||
"v1.0.0": "Lucky HomePage自定义API。"
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class Lucky(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Lucky_A.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.0.1"
|
||||
plugin_version = "1.0.2"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -87,7 +87,7 @@ class Lucky(_PluginBase):
|
||||
response.raise_for_status() # 如果状态码不是 2xx,抛出异常
|
||||
if response.json().get('ret') == 0:
|
||||
return response.json().get('list')[0].get('CertsInfo')[0].get('NotAfterTime')
|
||||
except requests.exceptions.RequestException as e:
|
||||
except Exception as e:
|
||||
logging.error("An error occurred:", e)
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user