mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-15 07:26:44 +00:00
fix 目录监控获取下载历史进行识别
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
"DirMonitor": {
|
||||
"name": "目录监控",
|
||||
"description": "监控目录文件发生变化时实时整理到媒体库。",
|
||||
"version": "1.8",
|
||||
"version": "1.9",
|
||||
"icon": "directory.png",
|
||||
"author": "jxxghp",
|
||||
"level": 1
|
||||
|
||||
@@ -59,7 +59,7 @@ class DirMonitor(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "directory.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.8"
|
||||
plugin_version = "1.9"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -371,6 +371,8 @@ class DirMonitor(_PluginBase):
|
||||
|
||||
# 识别媒体信息
|
||||
mediainfo: MediaInfo = self.chain.recognize_media(meta=file_meta,
|
||||
mtype=MediaType(
|
||||
download_history.type) if download_history else None,
|
||||
tmdbid=download_history.tmdbid if download_history else None)
|
||||
if not mediainfo:
|
||||
logger.warn(f'未识别到媒体信息,标题:{file_meta.name}')
|
||||
|
||||
Reference in New Issue
Block a user