mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-14 07:26:51 +00:00
fix PlayletCategory message type
This commit is contained in:
@@ -386,7 +386,7 @@
|
||||
"PlayletCategory": {
|
||||
"name": "短剧自动分类",
|
||||
"description": "网络短剧自动整理到独立的分类目录。",
|
||||
"version": "1.2",
|
||||
"version": "1.3",
|
||||
"icon": "Amule_A.png",
|
||||
"author": "jxxghp",
|
||||
"level": 1
|
||||
|
||||
@@ -11,8 +11,7 @@ from app.core.event import eventmanager, Event
|
||||
from app.log import logger
|
||||
from app.plugins import _PluginBase
|
||||
from app.schemas import TransferInfo
|
||||
from app.schemas.types import EventType, MediaType
|
||||
from app.utils.system import SystemUtils
|
||||
from app.schemas.types import EventType, MediaType, NotificationType
|
||||
|
||||
lock = threading.Lock()
|
||||
|
||||
@@ -25,7 +24,7 @@ class PlayletCategory(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Amule_A.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.2"
|
||||
plugin_version = "1.3"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -289,6 +288,7 @@ class PlayletCategory(_PluginBase):
|
||||
# 发送消息
|
||||
if self._notify:
|
||||
self.post_message(
|
||||
mtype=NotificationType.Organize,
|
||||
title="【短剧自动分类】",
|
||||
text=f"已将 {tv_path.name} 分类到 {self._category_name} 目录",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user