Add MPD nextsong/nextsongid test case
This commit is contained in:
parent
19818d3f68
commit
6787a044fc
@ -253,10 +253,6 @@ def _status_single(futures):
|
|||||||
return int(futures['tracklist.single'].get())
|
return int(futures['tracklist.single'].get())
|
||||||
|
|
||||||
|
|
||||||
def _status_songpos(futures):
|
|
||||||
return futures['tracklist.index'].get()
|
|
||||||
|
|
||||||
|
|
||||||
def _status_songid(futures):
|
def _status_songid(futures):
|
||||||
current_tl_track = futures['playback.current_tl_track'].get()
|
current_tl_track = futures['playback.current_tl_track'].get()
|
||||||
if current_tl_track is not None:
|
if current_tl_track is not None:
|
||||||
@ -265,14 +261,18 @@ def _status_songid(futures):
|
|||||||
return _status_songpos(futures)
|
return _status_songpos(futures)
|
||||||
|
|
||||||
|
|
||||||
def _status_nextsongpos(futures):
|
def _status_songpos(futures):
|
||||||
return futures['tracklist.next_index'].get()
|
return futures['tracklist.index'].get()
|
||||||
|
|
||||||
|
|
||||||
def _status_nextsongid(futures):
|
def _status_nextsongid(futures):
|
||||||
return futures['tracklist.next_tlid'].get()
|
return futures['tracklist.next_tlid'].get()
|
||||||
|
|
||||||
|
|
||||||
|
def _status_nextsongpos(futures):
|
||||||
|
return futures['tracklist.next_index'].get()
|
||||||
|
|
||||||
|
|
||||||
def _status_state(futures):
|
def _status_state(futures):
|
||||||
state = futures['playback.state'].get()
|
state = futures['playback.state'].get()
|
||||||
if state == PlaybackState.PLAYING:
|
if state == PlaybackState.PLAYING:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user