Expand music.mopidy backend into a full music.mopidy plugin #381

Merged
blacklight merged 6 commits from 297-mopidy-plugin into master 2024-04-04 01:01:05 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 0f12c15bdc - Show all commits

View File

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