Adding information filtering conditional on list comprehension
This commit is contained in:
parent
338470c11f
commit
8a5310806f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue