Commit Graph

15 Commits

Author SHA1 Message Date
Cole Helbling 12e1233d38
Fix compile-time warning of catch by value 2019-04-20 09:16:11 -07:00
Cole Helbling 160837b900
Ensure no NULL tags are set
Because `mpd_song_get_tag` from libmpdclient can return NULL, verify the
value of tag is valid. Otherwise, set a default string of "N/A". Also
adds configuration to specify what this default string should be.
2019-04-20 09:12:30 -07:00
Minijackson 66b0420391
fix(mpd): Escape MPD values in the label 2019-04-19 11:11:44 +02:00
Minijackson 3656035c89
fix(mpd): slightly better and safer error handling 2019-04-18 15:57:57 +02:00
Minijackson 0ce8821aec
feat(mpd): Add playing / paused classes 2019-04-18 15:57:57 +02:00
Minijackson ab43d34a1e
refactor(mpd): Add module name to log messages 2019-04-18 15:57:57 +02:00
Minijackson 22eccc2ac2
feat(mpd): reset player state when connection drops 2019-04-18 15:57:57 +02:00
Minijackson cd92b475ad
chore: Add clang-format configuration and format MPD module 2019-04-18 15:57:57 +02:00
Minijackson 235997fa73
feat(mpd): Add support for elapsed and total time 2019-04-18 15:55:46 +02:00
Minijackson 80a12d0238
feat(mpd): play/pause on click & stop on right-click 2019-04-18 15:55:46 +02:00
Minijackson 07dab2baec
feat(mpd): Add support for options (random, repeat, etc.) 2019-04-18 15:55:45 +02:00
Minijackson cbfcec4867
feat(mpd): Add support for play/pause icons 2019-04-18 15:55:45 +02:00
Minijackson 557b786ce0
feat(mpd): Allow for specifying the reconnect interval 2019-04-18 15:55:45 +02:00
Minijackson 8c9dd94670
feat(mpd): Add support for setting tooltip label when disconnected 2019-04-18 15:55:45 +02:00
Minijackson 06aff70e2e
feat: Add basic support for MPD 2019-04-18 15:55:45 +02:00