read from playlist.log; avoid making the file empty

This commit is contained in:
2025-05-16 22:57:44 -05:00
parent 130693884b
commit 528fd7f622

View File

@ -0,0 +1,3 @@
#!/usr/bin/bash
tail -1 /var/log/icecast2/playlist.log | cut -d \| -f 4 | perl -nle 'printf qq({ "title" : "%s" }\n), $_'