Make Queue.current nullable, since MPD may be stopped
This commit is contained in:
parent
b41339a8c5
commit
7dfd3f85e4
3 changed files with 7 additions and 5 deletions
|
|
@ -3,8 +3,10 @@ from dataclasses import dataclass
|
|||
|
||||
@dataclass(slots=True)
|
||||
class Queue:
|
||||
#: The zero-based index of the current song in MPD's queue.
|
||||
current: int
|
||||
#: The zero-based index of the current song in MPD's queue. If MPD is
|
||||
#: currently stopped, then there is no current song in the queue, indicated
|
||||
#: by None.
|
||||
current: int | None
|
||||
#: The index of the next song to be played, taking into account random and
|
||||
#: repeat playback settings.
|
||||
next: int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue