This commit is contained in:
thsrite
2024-11-16 20:26:39 +08:00
parent cb3def9680
commit eed023dc7b
2 changed files with 6 additions and 6 deletions

View File

@@ -404,12 +404,12 @@
"name": "云盘Strm助手",
"description": "实时监控、定时全量增量生成strm文件。",
"labels": "云盘",
"version": "1.1.0",
"version": "1.1.1",
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/cloudcompanion.png",
"author": "thsrite",
"level": 1,
"history": {
"v1.1.0": "支持消息发送",
"v1.1.1": "支持消息发送",
"v1.0.9": "目录树支持多级结构",
"v1.0.8": "修复重建缓存不生效",
"v1.0.7": "修复复制非媒体文件时父目录不存在",

View File

@@ -60,7 +60,7 @@ class CloudStrmCompanion(_PluginBase):
# 插件图标
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/cloudcompanion.png"
# 插件版本
plugin_version = "1.1.0"
plugin_version = "1.1.1"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -492,13 +492,13 @@ class CloudStrmCompanion(_PluginBase):
media_list = {
"episodes": episodes,
"type": "tv" if file_meta.season else "movie",
"time": datetime.datetime.now()
"time": datetime.now()
}
else:
media_list = {
"episodes": file_meta.episode_list,
"type": "tv" if file_meta.season else "movie",
"time": datetime.datetime.now()
"time": datetime.now()
}
self._medias[key] = media_list
except Exception as e:
@@ -810,7 +810,7 @@ class CloudStrmCompanion(_PluginBase):
continue
# 判断剧集最后更新时间距现在是已超过10秒或者电影发送消息
if (datetime.datetime.now() - last_update_time).total_seconds() > int(self._interval) \
if (datetime.now() - last_update_time).total_seconds() > int(self._interval) \
or str(mtype) == "movie":
# 发送通知
if self._notify: