From Flying Wolf, 2 Years ago, written in Plain Text.
Embed
  1. while :; do
  2.   mpv --input-ipc-server=/dev/shm/mpv_socket $(cat "$HOME/.config/stations" | head -n $(($(cat "$HOME/.config/current_station") * 2)) | tail -n 1) 2>/dev/null | while read p; do
  3.     echo "${p}" | grep --quiet "icy-title"
  4.     if [ $? -eq 0 ]; then
  5.       echo ${p} | sed "s/icy-title: //g; s/icy-title://g" > /dev/shm/song_title
  6.     fi
  7.   done
  8. done &
captcha