mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(custom): fix conditional statement
This commit is contained in:
parent
a123711a8d
commit
a0cdef569b
@ -16,7 +16,7 @@ def on_play(player, status, manager):
|
|||||||
def on_metadata(player, metadata, manager):
|
def on_metadata(player, metadata, manager):
|
||||||
track_info = ''
|
track_info = ''
|
||||||
|
|
||||||
if player.props.player_name == 'spotify' \
|
if player.props.player_name == 'spotify' and \
|
||||||
'mpris:trackid' in metadata.keys() and \
|
'mpris:trackid' in metadata.keys() and \
|
||||||
':ad:' in player.props.metadata['mpris:trackid']:
|
':ad:' in player.props.metadata['mpris:trackid']:
|
||||||
track_info = 'AD PLAYING'
|
track_info = 'AD PLAYING'
|
||||||
|
Loading…
Reference in New Issue
Block a user