mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 修复删除源文件
This commit is contained in:
@@ -176,11 +176,12 @@
|
||||
"name": "媒体文件同步删除",
|
||||
"description": "同步删除历史记录、源文件和下载任务。",
|
||||
"labels": "媒体库,文件整理",
|
||||
"version": "1.8.4",
|
||||
"version": "1.8.5",
|
||||
"icon": "mediasyncdel.png",
|
||||
"author": "thsrite",
|
||||
"level": 1,
|
||||
"history": {
|
||||
"v1.8.5": "修复删除源文件",
|
||||
"v1.8.4": "修复暂停种子失败",
|
||||
"v1.8.3": "修复源文件删除",
|
||||
"v1.8.1": "适配v2多媒体服务器,移除日志方式",
|
||||
|
||||
@@ -26,7 +26,7 @@ class MediaSyncDel(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "mediasyncdel.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.8.4"
|
||||
plugin_version = "1.8.5"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -766,8 +766,8 @@ class MediaSyncDel(_PluginBase):
|
||||
if self._del_source:
|
||||
# 1、直接删除源文件
|
||||
if transferhis.src and Path(transferhis.src).suffix in settings.RMT_MEDIAEXT:
|
||||
dest_fileitem = schemas.FileItem(**transferhis.dest_fileitem)
|
||||
state = StorageChain().delete_file(dest_fileitem)
|
||||
StorageChain().delete_file(schemas.FileItem(**transferhis.dest_fileitem))
|
||||
state = StorageChain().delete_file(schemas.FileItem(**transferhis.src_fileitem))
|
||||
if state and transferhis.download_hash:
|
||||
try:
|
||||
# 2、判断种子是否被删除完
|
||||
|
||||
Reference in New Issue
Block a user