[music.mpd] Adjust default poll_interval: 5 -> 20 seconds.

This commit is contained in:
Fabio Manganiello 2024-03-04 01:06:49 +01:00
parent 5c9c9f0a61
commit 0f12c15bdc
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class MusicMpdPlugin(MusicPlugin, RunnablePlugin):
self, self,
host: str, host: str,
port: int = 6600, port: int = 6600,
poll_interval: Optional[float] = 5.0, poll_interval: Optional[float] = 20.0,
**kwargs, **kwargs,
): ):
""" """
@ -42,7 +42,7 @@ class MusicMpdPlugin(MusicPlugin, RunnablePlugin):
:param port: MPD port (default: 6600). :param port: MPD port (default: 6600).
:param poll_interval: Polling interval in seconds. If set, the plugin :param poll_interval: Polling interval in seconds. If set, the plugin
will poll the MPD server for status updates and trigger change 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) super().__init__(poll_interval=poll_interval, **kwargs)
self.conf = MpdConfig(host=host, port=port) self.conf = MpdConfig(host=host, port=port)