diff --git a/README.md b/README.md index c7e5332..70c21d1 100644 --- a/README.md +++ b/README.md @@ -63,4 +63,4 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ 57. Emby视频类型检查 v1.0 `定期检查Emby媒体库中是否包含指定的视频类型,发送通知。` 58. Emby有声书整理 v1.1 `还在为Emby有声书整理烦恼吗?入库存在很多单集?` 59. Emby弹幕下载 v1.2 `通知Emby Danmu插件下载弹幕。` -60. Emby剧集演员同步 v1.1 `同步剧演员信息到集演员信息。` \ No newline at end of file +60. Emby剧集演员同步 v1.2 `同步剧演员信息到集演员信息。` \ No newline at end of file diff --git a/package.json b/package.json index 451d824..10452c8 100644 --- a/package.json +++ b/package.json @@ -764,11 +764,12 @@ "name": "Emby剧集演员同步", "description": "同步剧演员信息到集演员信息。", "labels": "Emby,媒体库", - "version": "1.0", + "version": "1.2", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/embyactorsync.png", "author": "thsrite", "level": 1, "history": { + "v1.2": "交互命令返回处理完成信息。", "v1.1": "支持交互命令手动同步单个剧集 /as 媒体库名 剧集名。", "v1.0": "同步剧演员信息到集演员信息。" } diff --git a/plugins/embyactorsync/__init__.py b/plugins/embyactorsync/__init__.py index 75ca0e9..0a2f563 100644 --- a/plugins/embyactorsync/__init__.py +++ b/plugins/embyactorsync/__init__.py @@ -23,7 +23,7 @@ class EmbyActorSync(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/embyactorsync.png" # 插件版本 - plugin_version = "1.1" + plugin_version = "1.2" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -113,9 +113,9 @@ class EmbyActorSync(_PluginBase): userid=event.event_data.get("user")) return - self.sync(args_list[0], args_list[1]) + self.sync(args_list[0], args_list[1], event) - def sync(self, library_name: str = None, media_name: str = None): + def sync(self, library_name: str = None, media_name: str = None, event: Event = None): """ Emby剧集演员同步 """ @@ -178,7 +178,10 @@ class EmbyActorSync(_PluginBase): retry += 1 logger.error( f"更新媒体:{item.get('Name')} {season_item_info.get('SeasonName')} {season_item_info.get('IndexNumber')} {season_item_info.get('Name')} 信息出错:{e} 开始重试...{retry} / 3") - + if event: + self.post_message(channel=event.event_data.get("channel"), + title=f"{library_name} {media_name} 同步完成", + userid=event.event_data.get("user")) logger.info(f"Emby剧集演员同步完成") def __update_item_info(self, item_id, data):