Permalink
Browse files

lose the megaupload assumption

  • Loading branch information...
1 parent 3a5ce54 commit 0f3084d92292a5a0270105aed548756fc273b4da @singpolyma committed Jan 28, 2012
Showing with 1 addition and 17 deletions.
  1. +1 −17 icefilms-download
View
@@ -10,20 +10,4 @@ puts "id=#{ARGV[1]}&s=120&iqs=#{f.iqs}&url=#{f.url}&m=-35&cap=&sec=37fn8Oklq&t=#
'
POSTDATA="`curl -s http://www.icefilms.info/membersonly/components/com_iceplayer/video.php?vid=$1 | ruby -rnokogiri -e"$DOWNLOAD_RB" $1 $2`"
-MEGAUPLOAD="`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)'`"
-MEGAUPLOAD_PAGE="`curl -s "$MEGAUPLOAD"`"
-
-TIMEOUT="`echo "$MEGAUPLOAD_PAGE" | grep 'count=\d*' | cut -d= -f2 | cut -d';' -f1`"
-
-if [ -z "$TIMEOUT" ]; then
- TIMEOUT=0
-fi
-
-while [ $TIMEOUT -gt 0 ]; do
- printf "\r%02d" $TIMEOUT
- sleep 1
- TIMEOUT="$(( $TIMEOUT - 1 ))"
-done
-
-echo
-echo "$MEGAUPLOAD_PAGE" | ruby -rnokogiri -e 'puts Nokogiri::parse(STDIN.read).at("#dlbutton")["href"]'
+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)'

0 comments on commit 0f3084d

Please sign in to comment.