mpv-icy-notify.sh
· 186 B · Bash
Raw
#!/bin/bash
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
| 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 |