someone_

Untitled

Jan 30th, 2015
214
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. wget -q "$1" -O a
  4.  
  5. for episode in $(egrep -o -e '<a href="/Anime/[^/]*/Episode-[0-9]+\?[^"]*' a | sed -e 's_<a href=._http://kissanime.com_' | sort);do
  6.     wget "$episode" -O a
  7.     exit 0
  8.     wget --no-check-certificate "https://"$(egrep -e "var txha = '" a | sed -e "s_https%3a%2f%2f_\n_g" | tail -n1 | sed -e "s_%26key%3dlh1_\n_" | head -n1 | sed -e "s_%2f_/_g" -e "s_%3f_?_" -e "s_%3d_=_g" -e "s_%26_\&_g" -e "s_%25_%_g")"&key=lh1" -O video${2}$(expr "$(echo \"${episode}\" | egrep -o -e '-[0-9]{3}' | sed -e 's_^-0\+__')" - "1")
  9. done
  10.  
  11. rm a
RAW Paste Data