This commit is contained in:
thsrite
2024-09-16 14:58:38 +08:00
parent 59a25348ec
commit ed1fec7eb9
3 changed files with 8 additions and 4 deletions

View File

@@ -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 `监控云盘目录文件变化,自动转移链接。`

View File

@@ -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": "按观影市场排序",

View File

@@ -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