diff --git a/README.md b/README.md index db4981d..e204b62 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ 26. 同步CookieCloud v1.2 `同步MoviePilot站点Cookie到本地CookieCloud。` 27. 日程提醒 v1.0 `自定义提醒事项、提醒时间。` 28. 订阅提醒 v1.1 `推送当天订阅更新内容。` -29. [Emby观影报告 v1.7](docs%2FEmbyReporter.md) `推送Emby观影报告,需Emby安装Playback Report 插件。` +29. [Emby观影报告 v1.8](docs%2FEmbyReporter.md) `推送Emby观影报告,需Emby安装Playback Report 插件。` 30. 演员订阅 v2.1.1 `自动订阅指定演员热映电影、电视剧。` 31. [短剧刮削 v3.2](docs%2FShortPlayMonitor.md) `监控视频短剧创建,刮削。` 32. 云盘实时监控 v2.4.6 `监控云盘目录文件变化,自动转移链接。` diff --git a/package.json b/package.json index a6558bf..d4eedf9 100644 --- a/package.json +++ b/package.json @@ -204,11 +204,12 @@ "name": "Emby观影报告", "description": "推送Emby观影报告,需Emby安装Playback Report 插件。", "labels": "Emby", - "version": "1.7", + "version": "1.8", "icon": "Pydiocells_A.png", "author": "thsrite", "level": 1, "history": { + "v1.8": "推送微信增加时间戳,防止使用缓存", "v1.7": "分块发送,兼容微信推送", "v1.6": "fix #67", "v1.5": "按观影市场排序", diff --git a/plugins/embyreporter/__init__.py b/plugins/embyreporter/__init__.py index c9cd489..a2894bb 100644 --- a/plugins/embyreporter/__init__.py +++ b/plugins/embyreporter/__init__.py @@ -33,7 +33,7 @@ class EmbyReporter(_PluginBase): # 插件图标 plugin_icon = "Pydiocells_A.png" # 插件版本 - plugin_version = "1.7" + plugin_version = "1.8" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -132,6 +132,9 @@ class EmbyReporter(_PluginBase): if not self._type: return + # 获取当前时间并格式化 + current_time = datetime.now().strftime("%Y%m%d%H%M%S") + # 获取数据 success, movies = self.get_report(types=self.PLAYBACK_REPORTING_TYPE_MOVIE, days=int(self._days), limit=int(self._cnt)) @@ -160,7 +163,7 @@ class EmbyReporter(_PluginBase): # 分块推送 for i in range(2, 4): report_path_part = f"/public/report_part_{i}.jpg" - report_url = self._mp_host + report_path_part.replace("/public", "") + report_url = self._mp_host + report_path_part.replace("/public", "") + f"?_timestamp={current_time}" mtype = NotificationType.MediaServer if self._type: mtype = NotificationType.__getitem__(str(self._type)) or NotificationType.MediaServer