Skip to content

Mpd widget doesn't handle apostrophes #258

@whooper2

Description

@whooper2

I'm using the mpd widget with awesome 4
When a song title has an apostrophe it displays it as " & apos ; "
here's the code i'm using:

mpdwidget = lain.widgets.mpd({
    settings = function()
        artist = mpd_now.artist .. " "
        title  = mpd_now.title  .. " "

        if mpd_now.state == "pause" then
            artist = " "
            title  = "paused  "
        elseif mpd_now.state == "stop" then
            artist = ""
            title  = ""
        end

        widget:set_text(artist .. "- " .. title)
    end
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions