From a3b6d411e4b13df762c246eda1a2e524941f7354 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 4 Mar 2024 01:06:49 +0100 Subject: [PATCH] [music.mpd] Adjust default poll_interval: 5 -> 20 seconds. --- platypush/plugins/music/mpd/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index 2dd54a16b1..4550e4fc9d 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -34,7 +34,7 @@ class MusicMpdPlugin(MusicPlugin, RunnablePlugin): self, host: str, port: int = 6600, - poll_interval: Optional[float] = 5.0, + poll_interval: Optional[float] = 20.0, **kwargs, ): """ @@ -42,7 +42,7 @@ class MusicMpdPlugin(MusicPlugin, RunnablePlugin): :param port: MPD port (default: 6600). :param poll_interval: Polling interval in seconds. If set, the plugin will poll the MPD server for status updates and trigger change - events when required. Default: 5 seconds. + events when required. Default: 20 seconds. """ super().__init__(poll_interval=poll_interval, **kwargs) self.conf = MpdConfig(host=host, port=port)