Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpris: use new helper: get_replacements_list introduced with (#2242) #2284

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

valdur55
Copy link
Contributor

No description provided.

@@ -280,6 +281,10 @@ def metadata(self, metadata=None):

self._metadata["nowplaying"] = metadata.get("vlc:nowplaying", None)

for x in self.parent.replacements_init:
if x in self._metadata and self._metadata[x]:
Copy link
Contributor

@lasers lasers Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(info) replace() should already skip on empty values too.

py3status/py3status/py3.py

Lines 1271 to 1272 in c2d623a

if not value or not isinstance(value, str):
return value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants