You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
313 B

#!/usr/bin/sh
socket="${SOCKET:-/tmp/mpvsocket}"
#case $BLOCK_BUTTON in
# 1) $COMMAND previous ;;
# 3) $COMMAND next ;;
#esac
echo '{ "command": ["get_property_string", "filtered-metadata"] }' | socat - /tmp/mpvsocket | jq '.data' | sed 's/"{\\"icy-title\\":\\"//g' | sed 's/\\"}"//g'
echo ""
echo "#00FF00"