This commit is contained in:
thsrite
2024-08-15 09:43:36 +08:00
parent 3303b63d3d
commit 97ce60e5df
3 changed files with 68 additions and 36 deletions

View File

@@ -44,7 +44,7 @@ MoviePilot三方插件市场https://github.com/thsrite/MoviePilot-Plugins/
- 命令执行器 v1.2
- [CloudDrive2助手v1.8.3](docs%2FCd2Assistant.md)
- 软连接重定向 v1.1
- 云盘同步删除 v1.5.3
- 云盘同步删除 v1.5.4
- 媒体库重复媒体检测 v1.9
- 演员作品订阅 v1.0
- 文件复制 v1.1

View File

@@ -626,11 +626,12 @@
"name": "云盘同步删除",
"description": "媒体库删除软连接文件后,同步删除云盘文件。",
"labels": "云盘",
"version": "1.5.3",
"version": "1.5.4",
"icon": "clouddisk.png",
"author": "thsrite",
"level": 2,
"history": {
"v1.5.4": "fix插件历史ui",
"v1.5.3": "修复删除文件夹包含本地+云盘的场景",
"v1.5.2": "修复直接删除本地文件夹的场景",
"v1.5.1": "不重要的更新",

View File

@@ -1,4 +1,3 @@
import os
import shutil
import time
from pathlib import Path
@@ -23,7 +22,7 @@ class CloudSyncDel(_PluginBase):
# 插件图标
plugin_icon = "clouddisk.png"
# 插件版本
plugin_version = "1.5.3"
plugin_version = "1.5.4"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -509,43 +508,75 @@ class CloudSyncDel(_PluginBase):
unique = history.get("unique")
if season:
sub_contents = [
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
if episode:
sub_contents = [
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'类型:{htype}'
},
'text': f'类型:{htype}'
},
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'标题:{title}'
},
'text': f'标题:{title}'
},
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'季:{season}'
},
'text': f'季:{season}'
},
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'集:{episode}'
},
'text': f'集:{episode}'
},
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'时间:{del_time}'
}
]
else:
sub_contents = [
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'类型:{htype}'
},
'text': f'时间:{del_time}'
}
]
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'标题:{title}'
},
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'季:{season}'
},
{
'component': 'VCardText',
'props': {
'class': 'pa-0 px-2'
},
'text': f'时间:{del_time}'
}
]
else:
sub_contents = [
{