Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support multi-part sources

  • Loading branch information...
commit 005bb7962c99c7d7cf968e4ad8183fcba3971a3e 1 parent 37e28b9
@singpolyma authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 icefilms-sources
View
11 icefilms-sources
@@ -8,8 +8,15 @@ fi
curl -s http://www.icefilms.info/membersonly/components/com_iceplayer/video.php?vid=$ID | ruby -rnokogiri -e '
Nokogiri::parse(STDIN.read).at("#srclist").search(".ripdiv").each do |el|
puts el.at("b").inner_html # section title
- el.search("a").each do |a|
- puts "#{ARGV[0]} #{a.attributes["onclick"].to_s.scan(/\d+/)[0]}"
+ el.search("p").each do |p|
+ links = p.search("a")
+ next if links.empty?
+
+ print ARGV[0]
+ links.each do |a|
+ print " #{a["onclick"][/\d+/]}"
+ end
+ puts
end
end
' $ID
Please sign in to comment.
Something went wrong with that request. Please try again.