mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix MediaSyncDel v1.9.1
兼容MoviePilot v2.5.3-1
This commit is contained in:
@@ -202,11 +202,12 @@
|
||||
"name": "媒体文件同步删除",
|
||||
"description": "同步删除历史记录、源文件和下载任务。",
|
||||
"labels": "媒体库,文件整理",
|
||||
"version": "1.9.0",
|
||||
"version": "1.9.1",
|
||||
"icon": "mediasyncdel.png",
|
||||
"author": "thsrite",
|
||||
"level": 1,
|
||||
"history": {
|
||||
"v1.9.1": "兼容MoviePilot v2.5.3-1",
|
||||
"v1.9.0": "刷新版本号",
|
||||
"v1.8.9": "修复删除空文件",
|
||||
"v1.8.7": "修复主程序修改事件任务后,同步删除未收到通知的问题",
|
||||
|
||||
@@ -12,6 +12,8 @@ from app.chain.transfer import TransferChain
|
||||
from app.core.config import settings
|
||||
from app.core.event import eventmanager, Event
|
||||
from app.db.models.transferhistory import TransferHistory
|
||||
from app.db.transferhistory_oper import TransferHistoryOper
|
||||
from app.db.downloadhistory_oper import DownloadHistoryOper
|
||||
from app.helper.downloader import DownloaderHelper
|
||||
from app.log import logger
|
||||
from app.plugins import _PluginBase
|
||||
@@ -27,7 +29,7 @@ class MediaSyncDel(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "mediasyncdel.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.9.0"
|
||||
plugin_version = "1.9.1"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -57,8 +59,8 @@ class MediaSyncDel(_PluginBase):
|
||||
def init_plugin(self, config: dict = None):
|
||||
self._transferchain = TransferChain()
|
||||
self._downloader_helper = DownloaderHelper()
|
||||
self._transferhis = self._transferchain.transferhis
|
||||
self._downloadhis = self._transferchain.downloadhis
|
||||
self._transferhis = TransferHistoryOper()
|
||||
self._downloadhis = DownloadHistoryOper()
|
||||
self._storagechain = StorageChain()
|
||||
|
||||
# 读取配置
|
||||
|
||||
Reference in New Issue
Block a user