Relatedly, I have a &#x27;nowplaying&#x27; commandline I use to capture whatever&#x27;s on BBC 6 Music right now, since I listen when I&#x27;m working but don&#x27;t pay attention to them saying who it is before the track:<p><pre><code>      ruby -e &#x27;require &quot;json&quot;; require &quot;net&#x2F;http&quot;; track=JSON.parse(Net::HTTP.get_response(URI(&quot;http:&#x2F;&#x2F;polling.bbc.co.uk&#x2F;radio&#x2F;nowandnextservice&#x2F;bbc_6music.json&quot;)).body)[&quot;message&quot;]; puts %w(title artist).map{|k| track[k]}.join(&quot;, &quot;)&#x27; | tee -a ~&#x2F;music.txt
</code></pre>
the json service there is what powers the now&amp;next on the station&#x27;s website. I&#x27;m sure that code could be neater, but just threw it together and it does the job.<p>I guess you could adapt this to add the current track to your Google Playlist.