mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 00:56:12 +08:00
Fix mpd status pattern not being matched when track contains brackets
This commit is contained in:
parent
433108adad
commit
b394353152
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ local function emit_info()
|
|||
function(stdout)
|
||||
local artist = stdout:match('^ARTIST@(.*)@TITLE')
|
||||
local title = stdout:match('@TITLE@(.*)@FILE')
|
||||
local status = stdout:match('%[(.*)%]')
|
||||
local status = stdout:match('\n%[(.*)%]')
|
||||
|
||||
if artist == "" then
|
||||
artist = "N/A"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue