Skip to content

Commit

Permalink
playerctl bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
javacafe01 committed Feb 17, 2021
1 parent a92a0d6 commit e56a2c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions signal/playerctl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ echo "$tmp_cover_path"
-- Get title and artist
local artist = line:match('artist_(.*)title_')
local title = line:match('title_(.*)')
awesome.emit_signal(
"bling::playerctl::title_artist_album", title,
artist, album_path)
if title and title ~= "" then
awesome.emit_signal(
"bling::playerctl::title_artist_album", title,
artist, album_path)
end
end)
end
})
Expand Down

0 comments on commit e56a2c2

Please sign in to comment.