From 8a5310806f03111cdf47eeccfeff59b56be22782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Rafael=20S=C3=A1nchez?= Date: Sun, 30 Jul 2017 01:26:13 -0400 Subject: [PATCH] Adding information filtering conditional on list comprehension --- powerline/segments/common/players.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/powerline/segments/common/players.py b/powerline/segments/common/players.py index 4cb1769a..f44e7547 100644 --- a/powerline/segments/common/players.py +++ b/powerline/segments/common/players.py @@ -564,7 +564,8 @@ class MocPlayerSegment(PlayerSegment): ) now_playing = dict( [line.split(': ') - for line in now_playing_str.split('\n')[:-1]] + for line in now_playing_str.split('\n')[:-1] + if line.split(': ')[0] not in ignore_info] ) state = _convert_state(now_playing.get('State')) return {