You are not logged in.

#1 2025-06-14 15:30:55

Akamiblade129_7
Member
Registered: 2024-12-06
Posts: 45

[SOLVED] N/A instead of Title on waybar mpd module

I've searched it, all I found is to update system and reboot and it didn't help.

mpc status showing:

> mpc status
Bon Jovi - It's My Life.mp3
[paused]  #1/1   2:35/3:45 (68%)
volume: 50%   repeat: on    random: off   single: off   consume: off

waybar module showing:

  N/A - (02:35/03:45)  

mpd config:

# Location for database
db_file            "~/.local/share/mpd/database"

# Logs to system journal
log_file           "syslog"

# The music directory is by default the XDG directory, uncomment to amend and choose a different directory
music_directory    "~/Music"

# Uncomment to enable the functionalities
playlist_directory "~/.local/share/mpd/playlists"
#pid_file           "~/.local/share/mpd/pid"
state_file         "~/.local/share/mpd/state"
sticker_file       "~/.local/share/mpd/sticker.sql"

# Uncomment to refresh the database whenever files in the music_directory are changed
auto_update "yes"

port "6600"
restore_paused "yes"

waybar module config:

"mpd": {
        "format": "{stateIcon} {title} - ({elapsedTime:%M:%S}/{totalTime:%M:%S}) {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} ",
        "format-disconnected": "~",
        "format-stopped": "~",
        "interval": 1,
        "on-click": "mpc toggle",
        "consume-icons": {
            "on": " "
        },
        "random-icons": {
            "on": " "
        },
        "repeat-icons": {
            "on": " "
        },
        "single-icons": {
            "on": "1 "
        },
        "state-icons": {
            "paused": "",
            "playing": ""
        },
        "tooltip-format": "MPD (connected)",
        "tooltip-format-disconnected": "MPD (disconnected)"
    },

Info that might be useful:

  • Kernel   : 6.15.2-arch1-1

  • WM       : Hyprland 0.49.0

  • Waybar : waybar 0.12.0-1

  • MPD     : mpd 0.24.4-1

Last edited by Akamiblade129_7 (2025-06-15 00:58:29)

Offline

#2 2025-06-14 15:53:07

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,726

Re: [SOLVED] N/A instead of Title on waybar mpd module

Bon Jovi - It's My Life.mp3Bon Jovi - It's My Life.mp3

Wild guess: the files doesn't have any id3 tags?
https://github.com/Alexays/Waybar/issues/3631

Offline

#3 2025-06-14 17:13:35

Akamiblade129_7
Member
Registered: 2024-12-06
Posts: 45

Re: [SOLVED] N/A instead of Title on waybar mpd module

seth wrote:

Bon Jovi - It's My Life.mp3Bon Jovi - It's My Life.mp3

Wild guess: the files doesn't have any id3 tags?
https://github.com/Alexays/Waybar/issues/3631

Yeah, that's probably the issue since I download music videos from yt and convert it to mp3.
So I have to edit file's metadata? Do you know any cli utilities to do it?

Edit:
Yep. That worked. I used id3v2 tool to edit file metadata.

$ idf3v2 -t "Title" path/to/file 

Still seems weird to me, that there's no way to display filename

Edit: I've got new problem now, it's not displaying cyrillic characters properly.. But I guess I gotta make new post about it

Last edited by Akamiblade129_7 (2025-06-14 17:38:24)

Offline

#4 2025-06-14 19:27:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,726

Re: [SOLVED] N/A instead of Title on waybar mpd module

Still seems weird to me, that there's no way to display filename

Did you check the linked bug?

it's not displaying cyrillic characters properly..

https://stackoverflow.com/a/9861839

yt-dlp --preset-alias=mp3 --add-metadata 'https://www.youtube.com/watch?v=lhg9bYNLvOg'

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB