rebuild.fm player
コード
選択した回が聴けます.
function pebuildfm() { rebuildfm-rss.rb | peco --null |xargs mplayer }
rebuildfm-rss.rb
#!/usr/bin/env ruby require 'rss' require 'open-uri' url = 'http://feeds.rebuild.fm/rebuildfm' open(url) do |rss| feed = RSS::Parser.parse(rss) feed.items.each do |item| puts"#{item.title}:#{item.itunes_subtitle.chomp}\0#{item.enclosure.url}" end end