fix keys
This commit is contained in:
@@ -6,8 +6,8 @@ function _sanitize {
|
||||
|
||||
# {{artist}} — {{title}}
|
||||
|
||||
SONGNAME="$( playerctl -s -p cider,OCbwoy3_s_iPhone metadata -f "{{artist}} — {{title}}" | _sanitize )"
|
||||
ALBUMNAME="$( playerctl -s -p cider,OCbwoy3_s_iPhone metadata album | _sanitize )"
|
||||
SONGNAME="$( playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata -f "{{artist}} — {{title}}" | _sanitize )"
|
||||
ALBUMNAME="$( playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata album | _sanitize )"
|
||||
|
||||
if [ ${#SONGNAME} -gt 0 ] ; then
|
||||
printf "{\"text\": \" $SONGNAME\", \"tooltip\": \"$ALBUMNAME\", \"class\":\"music\" }"
|
||||
|
||||
Reference in New Issue
Block a user