From a0cdef569b31c2b2c0e84bb18eccf4d87d176bbe Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Mon, 26 Nov 2018 19:35:03 +0100 Subject: [PATCH] fix(custom): fix conditional statement --- resources/custom_modules/mediaplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/custom_modules/mediaplayer.py b/resources/custom_modules/mediaplayer.py index 3013aa8d..7ad5c92d 100755 --- a/resources/custom_modules/mediaplayer.py +++ b/resources/custom_modules/mediaplayer.py @@ -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'