Fix mpd status pattern not being matched when track contains brackets

This commit is contained in:
elenapan 2020-04-18 05:46:56 +03:00
parent 433108adad
commit b394353152

View file

@ -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"