Adding information filtering conditional on list comprehension

This commit is contained in:
Jesús Rafael Sánchez 2017-07-30 01:26:13 -04:00
parent 338470c11f
commit 8a5310806f
1 changed files with 2 additions and 1 deletions

View File

@ -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 {