短剧分类视频V2

This commit is contained in:
LongShengWen
2024-11-20 15:37:37 +08:00
parent ddf0504b28
commit 8b36f75126
3 changed files with 9 additions and 10 deletions

View File

@@ -653,7 +653,7 @@
"icon": "Amule_A.png",
"author": "jxxghp",
"level": 1,
"v2": true,
// "v2": true,
"history": {
"v2.0": "适配新的目录结构变化,短剧分类名称调整为配置目录路径,升级后需要重新调整设置后才能使用。"
}

View File

@@ -252,13 +252,13 @@
"v2.0": "兼容MoviePilot V2"
}
},
"PlayletCategory_v2": {
"PlayletCategory": {
"name": "短剧自动分类",
"description": "网络短剧自动整理到独立的分类目录。",
"labels": "文件整理",
"version": "2.17",
"version": "2.1",
"icon": "Amule_A.png",
"author": "longqiuyu",
"author": "jxxghp,longqiuyu",
"level": 1,
"history": {
"v2.1": "兼容MoviePilot V2",

View File

@@ -19,7 +19,7 @@ from app.utils.system import SystemUtils
lock = threading.Lock()
class PlayletCategory_v2(_PluginBase):
class PlayletCategory(_PluginBase):
# 插件名称
plugin_name = "短剧自动分类"
# 插件描述
@@ -27,13 +27,13 @@ class PlayletCategory_v2(_PluginBase):
# 插件图标
plugin_icon = "Amule_A.png"
# 插件版本
plugin_version = "2.17"
plugin_version = "2.1"
# 插件作者
plugin_author = "longqiuyu"
plugin_author = "jxxghp,longqiuyu"
# 作者主页
author_url = "https://github.com/LongShengWen"
author_url = "https://github.com/jxxghp"
# 插件配置项ID前缀
plugin_config_prefix = "playletcategory_v2_"
plugin_config_prefix = "playletcategory_"
# 加载顺序
plugin_order = 29
# 可使用的用户级别
@@ -215,7 +215,6 @@ class PlayletCategory_v2(_PluginBase):
event_data = event.event_data
media_info: MediaInfo = event_data.get("mediainfo")
transfer_info: TransferInfo = event_data.get("transferinfo")
# logger.debug(transfer_info)
if not media_info or not transfer_info:
return
if not transfer_info.success: