Last active 1515515840

Wrapper for MPV that picks up icy-title updates and tells notify-send about them

Steven Smith revised this gist 1515551840. Go to revision

1 file changed, 2 insertions

mpv-icy-notify.sh(file created)

@@ -0,0 +1,2 @@
1 + #!/bin/bash
2 + mpv http://stream 2>&1 | while read p; do if [[ "$p" != "A: "* ]]; then echo $p; fi; if [[ "$p" == *"icy-title:"* ]]; then notify-send "$(echo $p | cut -d' ' -f2-)"; fi; done
Newer Older