From 085bca79742b6c56e51071cb60d83c15a5f35bdb Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Fri, 26 Jul 2024 09:49:45 +1000 Subject: [PATCH] Declare nextsong index as part of MPD status response --- src/mpd_now_playable/mpd/types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mpd_now_playable/mpd/types.py b/src/mpd_now_playable/mpd/types.py index 8d9db81..a7401c1 100644 --- a/src/mpd_now_playable/mpd/types.py +++ b/src/mpd_now_playable/mpd/types.py @@ -45,6 +45,10 @@ class StatusResponse(TypedDict): # The total number of items in the play queue, which is called the "playlist" throughout the MPD protocol for legacy reasons. playlistlength: str + # The zero-based index of the song that will play when the current song + # ends, taking into account repeat and random playback settings. + nextsong: str + # The format of decoded audio MPD is producing, expressed as a string in the form "samplerate:bits:channels". audio: str