add a script to parse icecast current track title and make JSON
This commit is contained in:
3
icecast-title-service/icecast-track-title-to-json.sh
Normal file
3
icecast-title-service/icecast-track-title-to-json.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
curl -s http://shred.ing:8000/live.mp3.vclt | perl -nle 'print qq({ "title" : "$1" }) if /^TITLE=(.*)$/'
|
||||||
Reference in New Issue
Block a user