def apply_metadata(m) =title = m["title"] #print("Now playing: #{title}") system("notify-send #{quote(title)}") endradio = input.http( user_agent="joats/kludged-up-script", timeout=30., poll_delay=.5, new_track_on_metadata=true, force_mime="audio/mpeg", buffer=.5, id="original", "http://music.joat:8000/airtime_128" ) radio = on_metadata(apply_metadata,radio) output.dummy(fallible=true,radio) |
For those that can't see it, the changes are all in the line starting with "system".
No comments:
Post a Comment