Skip to content

Commit

Permalink
Merge pull request #3325 from williamwith4ms/escape_&_in_mediaplayer.py
Browse files Browse the repository at this point in the history
fix: display titles with '&' correctly
  • Loading branch information
Alexays committed Jul 2, 2024
2 parents 18e67af + 02eaa8b commit ca3877d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/custom_modules/mediaplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def on_metadata_changed(self, player, metadata, _=None):
player_name = player.props.player_name
artist = player.get_artist()
title = player.get_title()
title = title.replace("&", "&")

track_info = ""
if player_name == "spotify" and "mpris:trackid" in metadata.keys() and ":ad:" in player.props.metadata["mpris:trackid"]:
Expand Down

0 comments on commit ca3877d

Please sign in to comment.