fix 目录监控汇总消息适当增加处理时间

This commit is contained in:
thsrite
2023-09-02 23:48:48 +08:00
committed by GitHub
parent 52e89747b7
commit 2e2472a387

View File

@ -411,8 +411,8 @@ class DirMonitor(_PluginBase):
transferinfo = media_files[0].get("transferinfo")
file_meta = media_files[0].get("file_meta")
mediainfo = media_files[0].get("mediainfo")
# 判断最后更新时间距现在是已超过3秒,超过则发送消息
if (datetime.now() - last_update_time).total_seconds() > 3:
# 判断最后更新时间距现在是已超过5秒,超过则发送消息
if (datetime.now() - last_update_time).total_seconds() > 5:
# 发送通知
if self._notify: