[39002] | 1 | #!/bin/sh |
---|
| 2 | # first sh box hoster for titannit mfg obi |
---|
| 3 | |
---|
| 4 | TYPE=$1 |
---|
| 5 | INPUT=$2 |
---|
| 6 | |
---|
[39362] | 7 | INPUT=`echo $INPUT | sed 's!/Out/?s=!!g'` |
---|
| 8 | |
---|
[39002] | 9 | ARCH=`cat /etc/.arch` |
---|
[39030] | 10 | BOX=`cat /etc/model` |
---|
[39002] | 11 | debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2` |
---|
[39427] | 12 | curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'" |
---|
[39391] | 13 | curlbin2='curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies' |
---|
[39002] | 14 | if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi |
---|
[39622] | 15 | if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi |
---|
[39002] | 16 | wgetbin="wget -q -T2" |
---|
| 17 | TMP=/tmp/localcache |
---|
| 18 | CMD=/tmp/localhoster |
---|
| 19 | |
---|
[39030] | 20 | BIN="$CMD"/bin/python."$ARCH" |
---|
| 21 | ln -fs /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload |
---|
| 22 | ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0 |
---|
[39028] | 23 | export PYTHONHOME=/tmp/localhoster |
---|
| 24 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib |
---|
[39002] | 25 | |
---|
[39030] | 26 | if [ -e "$TMP/hoster.tar" ]; then rm -f $TMP/hoster.tar; fi |
---|
| 27 | if [ -e "$TMP/parser.tar" ]; then rm -f $TMP/parser.tar; fi |
---|
| 28 | |
---|
| 29 | if [ "$ARCH" == "sh4" ] && [ "$BOX" != "ufs912" ]; then |
---|
[39124] | 30 | if [ -e "$CMD/lib/python2.7/lib-dynload.mipsel" ]; then rm -rf $CMD/lib/python2.7/lib-dynload.mipsel; fi |
---|
| 31 | if [ -e "$CMD/lib/libpython2.7.so.1.0.mipsel" ]; then rm -rf $CMD/lib/libpython2.7.so.1.0.mipsel; fi |
---|
[39030] | 32 | fi |
---|
| 33 | |
---|
[39002] | 34 | hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!http://!!' | sed 's!https://!!' | cut -d'/' -f1 | sed 's/www.//' | tr '.' '\n' | head -n1` |
---|
| 35 | |
---|
| 36 | debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2` |
---|
| 37 | curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies' |
---|
| 38 | if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi |
---|
| 39 | |
---|
| 40 | ecostream() |
---|
| 41 | { |
---|
| 42 | hosterurl=http://www.ecostream.tv |
---|
| 43 | data="tpm=`$curlbin $INPUT | grep footerhash | cut -d"'" -f2``$curlbin $INPUT | grep superslots | cut -d"'" -f2`&id=`$curlbin $INPUT | grep data-id | cut -d'"' -f4`" |
---|
| 44 | streampage=`$curlbin $hosterurl/js/ecoss.js | grep "$.post('" | grep videos | cut -d"'" -f2` |
---|
| 45 | streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $INPUT $hosterurl/$streampage | cut -d'"' -f6` |
---|
[39633] | 46 | if [ "`echo $streamurl | grep DOCTYPE | wc -l`" -eq 0 ] && [ "$streamurl" != "$hosterurl" ];then |
---|
[39002] | 47 | echo $streamurl |
---|
| 48 | fi |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | giga() |
---|
| 52 | { |
---|
| 53 | streampage=`$curlbin $INPUT | grep "<iframe src=" | cut -d'"' -f2 | head -n1` |
---|
| 54 | streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 1080p` |
---|
| 55 | if [ -z "$streamurl" ];then |
---|
| 56 | streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 720p` |
---|
| 57 | fi |
---|
| 58 | if [ -z "$streamurl" ];then |
---|
| 59 | streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 480p` |
---|
| 60 | fi |
---|
| 61 | if [ -z "$streamurl" ];then |
---|
| 62 | streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 360p` |
---|
| 63 | fi |
---|
| 64 | if [ -z "$streamurl" ];then |
---|
| 65 | streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 240p` |
---|
| 66 | fi |
---|
| 67 | if [ -z "$streamurl" ];then |
---|
| 68 | streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 180p` |
---|
| 69 | fi |
---|
| 70 | echo $streamurl |
---|
| 71 | } |
---|
| 72 | |
---|
| 73 | vidup() |
---|
| 74 | { |
---|
| 75 | $BIN $CMD/vidup.py $INPUT |
---|
| 76 | } |
---|
| 77 | |
---|
| 78 | nosvideo() |
---|
| 79 | { |
---|
| 80 | $BIN $CMD/nosvideo.py $INPUT |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | allmyvideos() |
---|
| 84 | { |
---|
| 85 | $BIN $CMD/allmyvideos.py $INPUT |
---|
| 86 | } |
---|
| 87 | |
---|
| 88 | flashx() |
---|
| 89 | { |
---|
| 90 | $BIN $CMD/flashx.py $INPUT |
---|
| 91 | } |
---|
| 92 | |
---|
| 93 | openload() |
---|
| 94 | { |
---|
| 95 | $BIN $CMD/openload.py $INPUT |
---|
| 96 | } |
---|
| 97 | |
---|
[39037] | 98 | briskfile() |
---|
| 99 | { |
---|
| 100 | $BIN $CMD/briskfile.py $INPUT |
---|
| 101 | } |
---|
| 102 | |
---|
[39052] | 103 | vodlocker() |
---|
| 104 | { |
---|
| 105 | $BIN $CMD/vodlocker.py $INPUT |
---|
| 106 | } |
---|
| 107 | |
---|
| 108 | videoweed() |
---|
| 109 | { |
---|
| 110 | $BIN $CMD/videoweed.py $INPUT |
---|
| 111 | } |
---|
| 112 | |
---|
| 113 | vodzi() |
---|
| 114 | { |
---|
| 115 | $BIN $CMD/vodzi.py $INPUT |
---|
| 116 | } |
---|
| 117 | |
---|
| 118 | youwatch() |
---|
| 119 | { |
---|
| 120 | $BIN $CMD/youwatch.py $INPUT |
---|
| 121 | } |
---|
| 122 | |
---|
[39219] | 123 | thevideo() |
---|
| 124 | { |
---|
| 125 | $BIN $CMD/thevideo.py $INPUT |
---|
| 126 | } |
---|
| 127 | |
---|
[39232] | 128 | movshare() |
---|
| 129 | { |
---|
| 130 | $BIN $CMD/movshare.py $INPUT |
---|
| 131 | } |
---|
| 132 | |
---|
| 133 | streamcloud() |
---|
| 134 | { |
---|
| 135 | $BIN $CMD/streamcloud.py $INPUT |
---|
| 136 | } |
---|
| 137 | |
---|
[39354] | 138 | vidzi() |
---|
| 139 | { |
---|
| 140 | $BIN $CMD/vidzi.py $INPUT |
---|
| 141 | } |
---|
| 142 | |
---|
[39355] | 143 | vivo() |
---|
| 144 | { |
---|
| 145 | $BIN $CMD/vivo.py $INPUT |
---|
| 146 | } |
---|
| 147 | |
---|
[39358] | 148 | vidto() |
---|
| 149 | { |
---|
| 150 | $BIN $CMD/vidto.py $INPUT |
---|
| 151 | } |
---|
| 152 | |
---|
[39387] | 153 | goldesel() |
---|
| 154 | { |
---|
| 155 | $BIN $CMD/goldesel.py $INPUT |
---|
| 156 | } |
---|
[39358] | 157 | |
---|
[39520] | 158 | cloudflare() |
---|
| 159 | { |
---|
| 160 | $BIN $CMD/cloudflare.py $INPUT |
---|
| 161 | } |
---|
| 162 | |
---|
[39580] | 163 | nowvideo() |
---|
| 164 | { |
---|
| 165 | $BIN $CMD/nowvideo.py $INPUT |
---|
| 166 | } |
---|
| 167 | |
---|
[39608] | 168 | divxstage() |
---|
| 169 | { |
---|
| 170 | $BIN $CMD/divxstage.py $INPUT |
---|
| 171 | } |
---|
| 172 | |
---|
[39650] | 173 | novamov() |
---|
| 174 | { |
---|
| 175 | $BIN $CMD/novamov.py $INPUT |
---|
| 176 | } |
---|
[39608] | 177 | |
---|
[39002] | 178 | if [ "$TYPE" == "get" ];then |
---|
| 179 | case $hoster in |
---|
| 180 | ecostream) ecostream $INPUT;; |
---|
| 181 | giga) giga $INPUT;; |
---|
| 182 | nosvideo) nosvideo $INPUT;; |
---|
| 183 | allmyvideos) allmyvideos $INPUT;; |
---|
| 184 | flashx) flashx $INPUT;; |
---|
| 185 | openload) openload $INPUT;; |
---|
[39037] | 186 | briskfile) briskfile $INPUT;; |
---|
[39650] | 187 | videoweed|bitvid) videoweed $INPUT;; |
---|
[39052] | 188 | vodlocker) vodlocker $INPUT;; |
---|
[39650] | 189 | youwatch|chouhaa) youwatch $INPUT;; |
---|
[39219] | 190 | thevideo) thevideo $INPUT;; |
---|
[39650] | 191 | movshare|wholecloud|vidgg) movshare $INPUT;; |
---|
| 192 | vidto) vidto $INPUT;; |
---|
| 193 | vidup) vidup $INPUT;; |
---|
[39354] | 194 | vidzi) vidzi $INPUT;; |
---|
[39355] | 195 | vivo) vivo $INPUT;; |
---|
[39650] | 196 | goldesel|movie4k) cloudflare $INPUT;; |
---|
[39267] | 197 | streamcloud1) streamcloud $INPUT;; |
---|
[39580] | 198 | nowvideo) nowvideo $INPUT;; |
---|
[39650] | 199 | divxstage|cloudtime) divxstage $INPUT;; |
---|
| 200 | novamov|auroravid) novamov $INPUT;; |
---|
[39002] | 201 | esac |
---|
| 202 | fi |
---|