Wrap Song in a broader Playback state object with stuff like volume and repeat mode
This commit is contained in:
parent
085bca7974
commit
68609f3d07
24 changed files with 765 additions and 245 deletions
13
src/mpd_now_playable/playback/queue.py
Normal file
13
src/mpd_now_playable/playback/queue.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class Queue:
|
||||
#: The zero-based index of the current song in MPD's queue.
|
||||
current: int
|
||||
#: The index of the next song to be played, taking into account random and
|
||||
#: repeat playback settings.
|
||||
next: int
|
||||
#: The total length of MPD's queue - the last song in the queue will have
|
||||
#: the index one less than this, since queue indices are zero-based.
|
||||
length: int
|
||||
Loading…
Add table
Add a link
Reference in a new issue