mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-04 23:15:27 +08:00
Fix evil mpd daemon fallback values
Now they will never be empty
This commit is contained in:
parent
29117297eb
commit
febad9fe9f
1 changed files with 5 additions and 2 deletions
|
|
@ -17,11 +17,14 @@ local function emit_info()
|
|||
local title = stdout:match('@TITLE@(.*)@FILE')
|
||||
local status = stdout:match('\n%[(.*)%]')
|
||||
|
||||
if artist == "" then
|
||||
if not artist or artist == "" then
|
||||
artist = "N/A"
|
||||
end
|
||||
if title == "" then
|
||||
if not title or title == "" then
|
||||
title = stdout:match('@FILE@(.*)@')
|
||||
if not title or title == "" then
|
||||
title = "N/A"
|
||||
end
|
||||
end
|
||||
|
||||
local paused
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue