Skip to content

mpd: Implement idle events for Playing state#5047

Open
awused wants to merge 2 commits into
Alexays:masterfrom
awused:mpd-idle
Open

mpd: Implement idle events for Playing state#5047
awused wants to merge 2 commits into
Alexays:masterfrom
awused:mpd-idle

Conversation

@awused
Copy link
Copy Markdown

@awused awused commented May 16, 2026

I've reused the macro from the Idle state where possible. It should be possible to drop querying MPD from on_timer entirely and just estimate the elapsed time, but that's a bigger change.

I've tested this locally including killing MPD at strange times or trying to otherwise get it into a strange state. The module updates instantly while playing instead of being delayed for up to a second.

Closes #2513

Fixes state not being updated when playing finishes: #782 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sync MPD module

1 participant