8000 MPD module is showowing title as "untitled track" when artist is unknow · Issue #815 · polybar/polybar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MPD module is showowing title as "untitled track" when artist is unknow #815

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

Closed
g3t0r opened this issue Oct 22, 2017 · 7 comments
Closed
Labels

Comments

@g3t0r
Copy link
g3t0r commented Oct 22, 2017

MPD module is showowing title as "untitled track" when artist is unknow

[module/mpd]
type = internal/mpd

host = 127.0.0.1
port = 6600
interval = 2
label-song =  %title% - %artist%
label-offline = 🎜 mpd is offline
format- 

icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 

label-song-maxlen = 25
label-song-ellipsis = true

przechwycenie obrazu ekranu_2017-10-22_11-17-31

przechwycenie obrazu ekranu_2017-10-22_11-18-08

@patrick96
Copy link
Member

Duplicate of #766
Please give your input on how you would like to have this handled over there

@NBonaparte
Copy link
Member

This looks different than #766, as it appears to be a bug that shows untitled track when it should be Scandroid - Eden.mp3.

@g3t0r could you give more information on what version you're on (polybar, mpd, libmpdclient) and what distro you're using?

@patrick96
Copy link
Member

Sorry totally misread that.

From the screenshot it seems to me that the mp3 file doesn't have a title set and ncmpcpp just displays the name of the file whereas polybar displays "unkown artist"

@g3t0r
Copy link
Author
g3t0r commented Oct 23, 2017

@NBonaparte I'm using Manjaro, mpd version is 0.20.10, libmpdclient 2.11-1, polybar 3.0.5-74-g5737156

@NBonaparte
Copy link
8000
Member
NBonaparte commented Oct 23, 2017

What does mpc -f "%title% - %artist%" display?

@NBonaparte
Copy link
Member

Never mind, I reproduced this with tag-less files and it is as @patrick96 said. We could add a fallback which calls mpd_song_get_uri(s) and extracts the filename (similar to ncmpcpp), if you would like it as a feature.

@g3t0r
Copy link
Author
g3t0r commented Oct 24, 2017

Sure, that would be great!

patrick96 added a commit that referenced this issue Dec 3, 2017
Breaking Changes:

* Date module no longer supports non-padded specifiers (i.e. `%-d`) and potentially other specifiers, see #792
  - Check http://en.cppreference.com/w/cpp/io/manip/put_time to see supported specifiers
* Setting background color to `background-0` with gradients (refer to https://github.com/jaagr/polybar/wiki/Known-Issues)

Changelog:

Features:
* Feat(mpd): State-specific formats (`format-playing`, `format-paused`, `format-stopped`) (#567), see #524 
* Feat(ipc): Visibility commands (show, hide, toggle, restart, quit) (b6c5563)
* Feat(shell): Bash completion (#588)
* Feat(menu): `expand-right` option (#658), see #655
* Feat(temperature): hwmon sysfs support (#688), see #404 
* Feat(cursor): Change cursors over clickable/scrollable areas (#727), see #721  
* Feat(temperature): Fahrenheit and Celsius tokens (#804)
* Feat(mpd): Use mpd name tag or URI as fallback for title-less tracks (#823), see #815 

Fixes:
* Fix(i3): Clicking workspaces without index (#521), see #520 
* Fix(parser): Prefix options overriding format options (#729), see #544
* Fix(parser): Overline tags (eebf105)
* Fix(process_util): Prefix shell environment variable (`$POLYBAR_SHELL`) (86ff947), see #566 
* Fix(parser): `%{R}` tag (reverse colors) (0bd8f1f), see #585 
* Fix(renderer): Center block position with tray (389bae2 & #673), see #551 & #672 
* Fix(xworkpaces): Active workspace with XMonad (#587), see #411 & #535 
* Fix(config): Expand tilde, environment variable (d3b0670 & #724), see #603 & #719 
* Fix(build): Remove curlbuild.h (#648), see #647 
* Fix(renderer): Off by one error for actions (#663), see #661 
* Fix(gcc): GCC 7.1 ([jaagr/xpp/#6](polybar/xpp#6))
* Fix(fs): Use `bytes_available` for `percentage_used` (138f5fa), see #710
* Fix(fs): Use `f_frsize` for calculations (a682d2a)
* Fix(date): Remove date string length limitation (#745), see #754 
* Fix(renderer): Nested actions (#772), see #760 and #758
* Fix(i3): Check and warn if current workspace not found (#826), see #824 
* Fix(github): Prevent module disappearing with no connection (#811), see #810 
* Fix(renderer): Module gradients (#831), see #759 
* Fix(build): Update deprecated jsoncpp Reader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
0