fix(custom): fix conditional statement

pull/108/head
Sibren Vasse 2018-11-26 19:35:03 +01:00
parent a123711a8d
commit a0cdef569b
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def on_play(player, status, manager):
def on_metadata(player, metadata, manager):
track_info = ''
if player.props.player_name == 'spotify' \
if player.props.player_name == 'spotify' and \
'mpris:trackid' in metadata.keys() and \
':ad:' in player.props.metadata['mpris:trackid']:
track_info = 'AD PLAYING'