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

mpd: add uri and filename format arguments #3849

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haansn08
Copy link

Many people have files in their music library that are not properly tagged and for such files {title} and {album} cannot be displayed by the mpd module. As a fallback the user might want to display filename or the full URI of this file instead ( see #3631 ).

This PR

  • enables the {filename} format replacement to be used in tooltips (previously only available in the label, for some reason)
  • documents the {filename} format replacement in the man page
  • adds an {uri} format replacement which takes the value of mpd_song_get_uri

While this does not allow to display the filename conditionally on the title being empty (format strings like {title|filename} don't seem to be allowed), at least one can now display the URI of the file in the tooltip and get a hint which file is missing proper tagging.

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.

1 participant