From 7cfe347f2bbf923506ea687f78c753d0579377bd Mon Sep 17 00:00:00 2001 From: Paul Kirby Date: Tue, 23 Dec 2014 16:43:11 -0700 Subject: [PATCH] Use status_delimiter as split character Newlines are not being used as a status delimiter in the applescript above, so don't use them. --- powerline/segments/common/players.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segments/common/players.py b/powerline/segments/common/players.py index c6922e03..0b13f525 100644 --- a/powerline/segments/common/players.py +++ b/powerline/segments/common/players.py @@ -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])