Use status_delimiter as split character
Newlines are not being used as a status delimiter in the applescript above, so don't use them.
This commit is contained in:
parent
f34ab66ea2
commit
7cfe347f2b
|
@ -437,7 +437,7 @@ class RDIOPlayerSegment(PlayerSegment):
|
|||
now_playing = asrun(pl, ascript)
|
||||
if not now_playing:
|
||||
return
|
||||
now_playing = now_playing.split('\n')
|
||||
now_playing = now_playing.split(status_delimiter)
|
||||
if len(now_playing) != 6:
|
||||
return
|
||||
state = _convert_state(now_playing[5])
|
||||
|
|
Loading…
Reference in New Issue