mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 修复实时监控,只处理指定类型的文件
This commit is contained in:
@@ -416,11 +416,12 @@
|
||||
"name": "云盘Strm助手",
|
||||
"description": "实时监控、定时全量增量生成strm文件。",
|
||||
"labels": "云盘",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/cloudcompanion.png",
|
||||
"author": "thsrite",
|
||||
"level": 1,
|
||||
"history": {
|
||||
"v1.0.4": "修复实时监控,只处理指定类型的文件",
|
||||
"v1.0.3": "修复重建索引缓存",
|
||||
"v1.0.2": "增加可玩性交互命令",
|
||||
"v1.0": "实时监控、定时全量增量生成strm文件"
|
||||
|
||||
@@ -58,7 +58,7 @@ class CloudStrmCompanion(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/cloudcompanion.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.0.3"
|
||||
plugin_version = "1.0.4"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -328,6 +328,10 @@ class CloudStrmCompanion(_PluginBase):
|
||||
if not event.is_directory:
|
||||
if '.fuse_hidden' in event_path:
|
||||
return
|
||||
# 只处理媒体文件
|
||||
if Path(event_path).suffix.lower() not in [ext.strip() for ext in
|
||||
self._rmt_mediaext.split(",")]:
|
||||
return
|
||||
# 文件发生变化
|
||||
logger.debug("文件%s:%s" % (text, event_path))
|
||||
self.__handle_file(event_path=event_path, mon_path=mon_path)
|
||||
|
||||
Reference in New Issue
Block a user