Merge pull request #299 from developer-wlj/main

chore(mediasyncdel): 兼容Windows路径格式
This commit is contained in:
thsrite
2025-11-05 15:09:11 +08:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -226,11 +226,12 @@
"name": "媒体文件同步删除",
"description": "同步删除历史记录、源文件和下载任务。",
"labels": "媒体库,文件整理",
"version": "1.9.1",
"version": "1.9.2",
"icon": "mediasyncdel.png",
"author": "thsrite",
"level": 1,
"history": {
"v1.9.2": "兼容windows路径",
"v1.9.1": "兼容MoviePilot v2.5.3-1",
"v1.9.0": "刷新版本号",
"v1.8.9": "修复删除空文件",

View File

@@ -29,7 +29,7 @@ class MediaSyncDel(_PluginBase):
# 插件图标
plugin_icon = "mediasyncdel.png"
# 插件版本
plugin_version = "1.9.1"
plugin_version = "1.9.2"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -596,6 +596,8 @@ class MediaSyncDel(_PluginBase):
media_name = event_data.item_name
# 媒体路径
media_path = event_data.item_path
# 兼容windows路径 如 C:\test.mp4 转换为 C:/test.mp4
media_path = media_path.replace('\\', '/')
# tmdb_id
tmdb_id = event_data.tmdb_id
# 季数
@@ -678,6 +680,8 @@ class MediaSyncDel(_PluginBase):
media_name = event_data.item_name
# 媒体路径
media_path = event_data.item_path
# 兼容windows路径 如 C:\test.mp4 转换为 C:/test.mp4
media_path = media_path.replace('\\', '/')
# tmdb_id
tmdb_id = event_data.tmdb_id
# 季数