This commit is contained in:
thsrite
2024-07-05 16:04:56 +08:00
parent 11f9b43888
commit 884aed369b
3 changed files with 5 additions and 5 deletions

View File

@@ -45,5 +45,5 @@ MoviePilot三方插件市场https://github.com/thsrite/MoviePilot-Plugins/
- [云盘助手 v2.0.8](docs%2FCloudAssistant.md)
- CloudDrive2助手 v1.3
- 软连接重定向 v1.0
- 云盘同步删除 v1.3.1
- 云盘同步删除 v1.4
- 媒体库重复媒体检测 v1.9

View File

@@ -584,11 +584,12 @@
"name": "云盘同步删除",
"description": "媒体库删除软连接文件后,同步删除云盘文件。",
"labels": "云盘",
"version": "1.3.1",
"version": "1.4",
"icon": "clouddisk.png",
"author": "thsrite",
"level": 2,
"history": {
"v1.4": "插件删除历史",
"v1.3.1": "添加log",
"v1.3": "同步删除thumb图片",
"v1.2": "修复删除bug",

View File

@@ -22,7 +22,7 @@ class CloudSyncDel(_PluginBase):
# 插件图标
plugin_icon = "clouddisk.png"
# 插件版本
plugin_version = "1.3.1"
plugin_version = "1.4"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -190,14 +190,13 @@ class CloudSyncDel(_PluginBase):
history.append({
"type": media_type.value,
"title": media_name,
"path": media_path,
"path": str(media_path),
"season": season_num if season_num and str(season_num).isdigit() else None,
"episode": episode_num if episode_num and str(episode_num).isdigit() else None,
"image": poster_image,
"del_time": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time())),
"unique": f"{media_name} {tmdb_id}"
})
logger.info(f"添加同步历史记录 {history[-1]}")
# 保存历史
self.save_data("history", history)