Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (10 sloc) 576 Bytes
#!/bin/sh
DOWNLOAD_RB='
f = Nokogiri::parse(STDIN.read).at("form[name=frm]")
def f.method_missing(att)
self.at("input[name=#{att}]").attributes["value"]
end
puts "id=#{ARGV[1]}&s=120&iqs=#{f.iqs}&url=#{f.url}&m=-35&cap=&sec=37fn8Oklq&t=#{ARGV[0]}"
'
POSTDATA="`curl -s http://www.icefilms.info/membersonly/components/com_iceplayer/video.php?vid=$1 | ruby -rnokogiri -e"$DOWNLOAD_RB" $1 $2`"
curl -s http://www.icefilms.info/membersonly/components/com_iceplayer/video.phpAjaxResp.php -d "$POSTDATA" | cut -d= -f2- | cut -d'&' -f1 | ruby -rcgi -e 'puts CGI::unescape(gets)'