mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Merge pull request #108 from SibrenVasse/spotify
fix(custom): fix conditional statement
This commit is contained in:
		@@ -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'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user