Permalink
Browse files

+ musicforprogramming.net random player

Thanks, Voker57
  • Loading branch information...
l29ah committed Feb 18, 2017
1 parent 6d87e22 commit 2c96acea9c3e39e25bb496f0125d5de4b93ee976
Showing with 11 additions and 0 deletions.
  1. +11 −0 musicforprogramming.net/mfp
@@ -0,0 +1,11 @@
#!/usr/bin/env ruby24
require 'nokogiri'
require 'open-uri'
cmd = "mpv -shuffle --"
mainpage = Nokogiri.parse(open("http://musicforprogramming.net/"))
mainpage.search("div#episodes/a").each do |a|
a_pg = Nokogiri.parse(open("http://musicforprogramming.net/" + a["href"]))
cmd = cmd + " " + a_pg.at("audio")["src"]
end
system(cmd)

0 comments on commit 2c96ace

Please sign in to comment.