source: titan/mediathek/localhoster/hoster.sh @ 42024

Last change on this file since 42024 was 42024, checked in by obi, 2 years ago

opti kinp

  • Property svn:executable set to *
File size: 31.0 KB
Line 
1#!/bin/sh
2# first sh box hoster for titannit mfg obi
3
4TYPE=$1
5INPUT=$2
6DEST=$3
7USER=$DEST
8PASS=$4
9
10INPUT=`echo $INPUT | sed 's!/Out/?s=!!g'`
11
12#FILENAME="`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` $INPUT $PAGE $NEXT"
13FILENAME="`echo $INPUT | sed -e 's/\-\+/./g' | sed -e 's/\+\+/./g' | sed -e 's/\&\+/./g' -e 's#\/\+#.#g' -e 's/\?\+/./g' -e 's/:\+/./g' -e 's/;\+/./g' -e 's/=\+/./g' -e 's/ \+/./g' -e 's/\.\+/./g'`"
14PICNAME=`echo $FILENAME`
15
16if [ -z "$FILENAME" ]; then
17        FILENAME=none
18fi
19
20ARCH=`cat /etc/.arch`
21BOX=`cat /etc/model`
22TMP=/tmp/localcache
23CMD=/tmp/localhoster
24BIN="$CMD"/bin/python."$ARCH"
25HLSBIN="$CMD"/bin/hlsdl."$ARCH"
26CURLBIN="$CMD"/bin/curl."$ARCH"
27if [ ! -e "$CURLBIN" ];then CURLBIN=curl; fi
28#USERAGENT='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
29USERAGENT='Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
30debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
31curlbin="$CURLBIN -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
32curlbin2="$CURLBIN -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
33youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
34youtubebinbg="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors --output"
35hlsdlbg="$HLSBIN -u $USERAGENT -o"
36
37if [ -e /mnt/network/cookies ];then sed 's/#HttpOnly_//g' -i /mnt/network/cookies; fi
38
39export PYTHONHOME=/tmp/localhoster
40export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
41
42if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
43if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi
44if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi
45
46wgetbin="wget -q -T2"
47
48if [ ! -e "/tmp/localhoster/lib/python2.7/lib-dynload" ] && [ -e /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" ];then
49#       ln -fs /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
50        time mv -f /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
51        time rm -rf /tmp/localhoster/lib/python2.7/lib-dynload.*
52fi
53if [ ! -e "/tmp/localhoster/lib/libpython2.7.so.1.0" ] && [ -e /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" ];then
54#       ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
55        time mv -f /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
56        time rm -f /tmp/localhoster/lib/libpython2.7.so.1.0.*
57fi
58if [ ! -e "/tmp/localhoster/lib/libcrypto.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" ];then
59#       ln -fs /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
60        time mv -f /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
61        time rm -f /tmp/localhoster/lib/libcrypto.so.1.0.0.*
62fi
63if [ ! -e "/tmp/localhoster/lib/libssl.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" ];then
64#       ln -fs /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/llibssl.so.1.0.0
65        time mv -f /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/libssl.so.1.0.0
66        time rm -f /tmp/localhoster/lib/libssl.so.1.0.0.*
67fi
68
69if [ -e "$TMP/hoster.tar" ]; then time rm -f $TMP/hoster.tar; fi
70if [ -e "$TMP/parser.tar" ]; then time rm -f $TMP/parser.tar; fi
71
72if [ "$ARCH" == "sh4" ];then #&& [ "$BOX" != "ufs912" ]; then
73        if [ -e "$CMD/lib/python2.7/lib-dynload.mipsel" ]; then time rm -rf $CMD/lib/python2.7/lib-dynload.mipsel; fi
74        if [ -e "$CMD/lib/python2.7/lib-dynload.arm" ]; then time rm -rf $CMD/lib/python2.7/lib-dynload.arm; fi
75
76        if [ -e "$CMD/lib/libpython2.7.so.1.0.mipsel" ]; then time rm -rf $CMD/lib/libpython2.7.so.1.0.mipsel; fi
77        if [ -e "$CMD/lib/libpython2.7.so.1.0.arm" ]; then time rm -rf $CMD/lib/libpython2.7.so.1.0.arm; fi
78
79        if [ -e "$CMD/lib/libssl.so.1.0.0.mipsel" ]; then time rm -rf $CMD/lib/libssl.so.1.0.0.mipsel; fi
80        if [ -e "$CMD/lib/libssl.so.1.0.0.arm" ]; then time rm -rf $CMD/lib/libssl.so.1.0.0.arm; fi
81
82        if [ -e "$CMD/lib/libcrypto.so.1.0.0.mipsel" ]; then time rm -rf $CMD/lib/libcrypto.so.1.0.0.mipsel; fi
83        if [ -e "$CMD/lib/libcrypto.so.1.0.0.arm" ]; then time rm -rf $CMD/lib/libcrypto.so.1.0.0.arm; fi
84fi
85
86hostercheck=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | tr '.' '\n' | wc -l`
87hosterline=`expr $hostercheck - 1`
88hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | cut -d"." -f$hosterline`
89#echo $hoster
90
91ecostream()
92{
93        hosterurl=http://www.ecostream.tv
94        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`"
95        streampage=`$curlbin $hosterurl/js/ecoss.js | grep "$.post('" | grep videos | cut -d"'" -f2`
96        streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $INPUT $hosterurl/$streampage | cut -d'"' -f6`
97        if [ "`echo $streamurl | grep DOCTYPE | wc -l`" -eq 0 ] && [ "$streamurl" != "$hosterurl" ];then
98                echo $streamurl
99        fi
100}
101
102giga()
103{
104        streampage=`$curlbin $INPUT | grep "<iframe src=" | cut -d'"' -f2 | head -n1`
105        streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 1080p`
106        if [ -z "$streamurl" ];then
107                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 720p`
108        fi
109        if [ -z "$streamurl" ];then
110                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 480p`
111        fi
112        if [ -z "$streamurl" ];then
113                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 360p`
114        fi
115        if [ -z "$streamurl" ];then
116                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 240p`
117        fi
118        if [ -z "$streamurl" ];then
119                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 180p`
120        fi
121        echo $streamurl
122}
123
124vidup()
125{
126        $BIN $CMD/vidup.py $INPUT
127}
128
129nosvideo()
130{
131        $BIN $CMD/nosvideo.py $INPUT
132}
133
134allmyvideos()
135{
136        $BIN $CMD/allmyvideos.py $INPUT
137}
138
139flashx()
140{
141        $BIN $CMD/flashx.py $INPUT
142}
143
144openload()
145{
146        $BIN $CMD/openload.py $INPUT
147}
148
149briskfile()
150{
151        $BIN $CMD/briskfile.py $INPUT
152}
153
154vodlockerold()
155{
156        $BIN $CMD/vodlocker.py $INPUT
157}
158
159videoweed()
160{
161        $BIN $CMD/videoweed.py $INPUT
162}
163
164vodzi()
165{
166        $BIN $CMD/vodzi.py $INPUT
167}
168
169youwatch()
170{
171        $BIN $CMD/youwatch.py $INPUT
172}
173
174thevideo()
175{
176        $BIN $CMD/thevideo.py $INPUT
177}
178
179movshare()
180{
181        $BIN $CMD/movshare.py $INPUT
182}
183
184streamcloud()
185{
186        $BIN $CMD/streamcloud.py $INPUT
187}
188
189vidzi()
190{
191        $BIN $CMD/vidzi.py $INPUT
192}
193
194vivo()
195{
196        $BIN $CMD/vivo.py $INPUT
197}
198
199vidto()
200{
201        $BIN $CMD/vidto.py $INPUT
202}
203
204goldesel()
205{
206        $BIN $CMD/goldesel.py $INPUT
207}
208
209cloudflare()
210{
211        mkdir $TMP > /dev/null 2>&1
212        $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1
213        if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
214                ERROR=`cat $TMP/cache.hoster.$hoster.1 | grep urllib2.HTTPError:`
215                echo "errormsg: $ERROR"
216        else
217                cat $TMP/cache.hoster.$hoster.1
218        fi
219}
220
221kinox()
222{
223        mkdir $TMP > /dev/null 2>&1
224
225        if [ "$TYPE" == "get" ];then
226                $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1
227                if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
228                        ERROR=`echo $INPUT | grep urllib2.HTTPError:`
229                        echo "errormsg: $ERROR"
230                else
231                        cat $TMP/cache.hoster.$hoster.1
232                fi
233        elif [ "$TYPE" == "hoster" ];then
234
235                if [ `echo $INPUT | grep "/aGET/" | wc -l` -eq 1 ];then
236                        URL=`$BIN $CMD/cloudflare.py $INPUT | tr -d '\\' | sed -nr 's/.*<iframe src="([^"]+)".*/\1/p'`
237                        if [ -z "$URL" ];then
238                                URL=`$BIN $CMD/cloudflare.py $INPUT | tr -d '\\' | sed -nr 's/.*<a href="([^"]+)".*/\1/p'`
239                        fi
240                        if [ `echo $URL | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
241                                ERROR=`echo $INPUT | grep urllib2.HTTPError:`
242                                echo "errormsg: $ERROR"
243                        else
244                                if [ `echo $URL | grep ^"//" | wc -l` -eq 1 ];then
245                                        echo "http:$URL"
246                                else
247                                        echo "$URL"
248                                fi
249                        fi
250                else
251                        $BIN $CMD/cloudflare.py $INPUT         
252                fi     
253        fi
254}
255
256nowvideo()
257{
258        $BIN $CMD/nowvideo.py $INPUT
259}
260
261divxstage()
262{
263        $BIN $CMD/divxstage.py $INPUT
264}
265
266novamov()
267{
268        $BIN $CMD/novamov.py $INPUT
269}
270
271xvidstage()
272{
273        $BIN $CMD/xvidstage.py $INPUT
274}
275
276waaw()
277{
278        $BIN $CMD/waaw.py $INPUT
279}
280
281streamango()
282{
283        $BIN $CMD/streamango.py $INPUT
284}
285
286vidlox()
287{
288        $BIN $CMD/vidlox.py $INPUT
289}
290
291vodlocker()
292{
293        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
294
295        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
296        if [ -e "$STREAMLIST" ];then
297                rm -f $STREAMLIST > /dev/null 2>&1
298        fi
299
300        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
301        cat $TMP/cache.hoster.$hoster.1 | sed 's/<source src=/\nfound=/g' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.1.url1
302        URL=`cat $TMP/cache.hoster.$hoster.1.url1`
303
304        if [ ! -z "$URL" ];then
305#               echo "$URL" >> $STREAMLIST
306
307                REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
308                echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT" >> $STREAMLIST
309#               echo "$URL|User-Agent=$USERAGENT" >> $STREAMLIST
310
311                sed 's/#HttpOnly_//g' -i /mnt/network/cookies
312
313        fi
314
315        URL=$STREAMLIST
316
317        echo "$URL"
318}
319
320aliezold()
321{
322        URL=`$curlbin "$INPUT" | sed 's/source:/\nsource:/' | grep ^source: | cut -d"'" -f2`
323        REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
324        echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
325}
326
327aliez()
328{
329        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
330        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
331        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
332        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
333
334        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
335        if [ -e "$STREAMLIST" ];then
336                rm -f $STREAMLIST > /dev/null 2>&1
337        fi
338
339        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
340        cat $TMP/cache.hoster.$hoster.1 | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
341        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
342        if [ ! -z "$URL" ];then
343                echo "$URL$EXTRA" >> $STREAMLIST
344        fi
345#       URL=""
346        #file:  'http://a3.aliez.me:8080/hls/streama57449/index.m3u8?st=dgw2dOq8tyFkLLBLn2ycXA',
347
348        cat $TMP/cache.hoster.$hoster.1 | sed 's/file:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url2
349        URL=`cat $TMP/cache.hoster.$hoster.url2 | head -n1`
350        if [ ! -z "$URL" ];then
351                echo "$URL$EXTRA" >> $STREAMLIST
352        fi
353#URL=""
354        #"file":                "rtmp%3A%2F%2Fa3.aliez.me%2Flive%2Fstreama57449%3Ftoken%3Dd11304fabb8e64327df8427e1c2fd5d9"
355        cat $TMP/cache.hoster.$hoster.1 | sed 's/"file":/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3
356        URL=`cat $TMP/cache.hoster.$hoster.url3 | head -n1`
357
358        if [ "`echo $URL | grep rtmp | wc -l`" -eq 1 ];then
359                #new swfobject.embedSWF("http://i.aliez.me/swf/playernew.swf?0", "mediaspace", "700", "480", "9.0.115.0", false, flashvars, params);
360                cat $TMP/cache.hoster.$hoster.1 | sed 's/swfobject.embedSWF/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3.rtmp.swfurl
361                SWFURL=`cat $TMP/cache.hoster.$hoster.url3.rtmp.swfurl | head -n1`
362                URL=`echo "$URL" | sed -e 's/%3A/:/g' -e 's!%2F!/!g' -e 's!%3D!=!g' -e 's!%3F!?!g'`
363                EXTRA=" pageUrl=$REFERER"
364                if [ ! -z "$SWFURL" ];then
365                        EXTRA="$EXTRA swfUrl=$SWFURL swfVfy=1 timeout=15 live=1"
366                fi
367                if [ ! -z "$URL" ];then
368                        echo "$URL$EXTRA" >> $STREAMLIST
369                fi
370        fi
371        URL=$STREAMLIST
372
373
374        echo "$URL"
375}
376
377sport7()
378{
379        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
380        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
381
382        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
383        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
384        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
385
386        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
387        if [ -e "$STREAMLIST" ];then
388                rm -f $STREAMLIST > /dev/null 2>&1
389        fi
390
391        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
392        cat $TMP/cache.hoster.$hoster.1 | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
393        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
394        # enable httponly cookie
395        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
396
397        if [ ! -z "$URL" ];then
398                echo "$URL$EXTRA" > $STREAMLIST
399                #echo "$URL$EXTRA"
400                echo "$STREAMLIST"
401        fi
402       
403       
404#       URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2`
405#       REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
406#       sed 's/#HttpOnly_//g' -i /mnt/network/cookies
407#       echo "$URL|Referer=$REFERER&X-f=96.91.79.87&User-Agent=$USERAGENT"
408#       cat $STREAMLIST
409}
410
411sportstream365()
412{
413        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
414        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
415
416        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
417#       REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
418        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
419        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
420
421        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
422        if [ -e "$STREAMLIST" ];then
423                rm -f $STREAMLIST > /dev/null 2>&1
424        fi
425
426        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
427
428        #<input type="hidden" name="game" value="146875046">
429        id=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*name="game" value="([^"]+)".*/\1/p')
430        ts=$(date +%s)
431        URL="http://sportstream365.com/LiveFeed/GetGame?id=$id&partner=24"
432
433        $curlbin "$URL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
434
435
436        #"VI":"1032572"
437        id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI" :"([^"]+)".*/\1/p')
438        if [ -z "$id" ];then
439                id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI":"([^"]+)".*/\1/p')
440        fi
441        #https://github.com/XvBMC/repository.xvbmc/blob/master/Dependencies/script.module.liveresolver/lib/liveresolver/resolvers/sportstream365.py
442        URL=http://93.189.57.254/edge0/xrecord/$id/prog_index.m3u8
443        # enable httponly cookie
444        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
445
446        if [ ! -z "$URL" ];then
447                echo "$URL$EXTRA" > $STREAMLIST
448                #echo "$URL$EXTRA"
449                echo "$STREAMLIST"
450        fi
451}
452
453sportsonline()
454{
455        #http://sportsonline.pw/livetv/pt-sporttv1.html
456        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
457        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
458        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
459
460        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
461        if [ -e "$STREAMLIST" ];then
462                rm -f $STREAMLIST > /dev/null 2>&1
463        fi
464
465        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
466
467        #<iframe src="http://widestream.io/embedClappr.php?live=13593" width="100%" height="100%" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>
468        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*iframe src="([^"]+)".*/\1/p')
469
470        $curlbin "$TMPURL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
471
472        #source: "http://ultra.widestream.io:8081/wideedge/1022qvk/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvOS8yMDE3IDEyOjMyOjQzIEFNJmhhc2hfdmFsdWU9ZW9WeThRL0JmaVA2dnFUQm15Ukkvdz09JnZhbGlkbWludXRlcz0yMA==",
473        TMPURL=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*source: "([^"]+)".*/\1/p')
474
475        if [ ! -z "$TMPURL" ];then
476                echo "$TMPURL$EXTRA" > $STREAMLIST
477                #echo "$URL$EXTRA"
478                echo "$STREAMLIST"
479        fi
480}
481
482assia()
483{
484        #http://assia.tv/live/gol-tv/?lang=ru
485        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
486        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
487        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
488
489        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
490        if [ -e "$STREAMLIST" ];then
491                rm -f $STREAMLIST > /dev/null 2>&1
492        fi
493
494        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
495
496        #this.videoplayer2600 = new Uppod({m:"video",uid:"videoplayer2600",comment:"",file:"http://video.assia.tv/hls/50.m3u8?md5=UD9zcmEXXgjdB92hTu9_nw&expires=1512784272",st:"uppodvideo",onReady: function(uppod){setTimeout(uppod.Pause, 60000);}});
497        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*file:"([^"]+)".*/\1/p' | tail -n1)
498
499        if [ ! -z "$TMPURL" ];then
500                echo "$TMPURL$EXTRA" > $STREAMLIST
501                #echo "$URL$EXTRA"
502                #http://video.assia.tv/hls/50.m3u8?md5=olw9K2ANtWtCPiL6LreprA&expires=1512783904|User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
503
504                echo "$STREAMLIST"
505        fi
506}
507
508cricfree()
509{
510        #http://cricfree.sc/update/bt2.php
511        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
512        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
513        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
514
515        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
516        if [ -e "$STREAMLIST" ];then
517                rm -f $STREAMLIST > /dev/null 2>&1
518        fi
519
520        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
521
522        #<iframe frameborder="0" marginheight="0" allowfullscreen="true" marginwidth="0" height="555" src="http://cricfree.sc/update/bt1.php" id="iframe" name="iframe_a" scrolling="no" width="620">Your Browser Do not Support Iframe</iframe>
523        TMPURL1=$(cat $TMP/cache.hoster.$hoster.1 | grep "<iframe" | grep cricfree | sed -nr 's/.*src="([^"]+)".*/\1/p')
524
525#       $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
526        $curlbin "$TMPURL1" -o $TMP/cache.hoster.$hoster.2
527
528        #<script type='text/javascript'>id='bt2i'; width='620'; height='490';</script><script type='text/javascript' src='http://hi.notkodi.science/streamgame.js'></script>
529        TMPURL2=$(cat $TMP/cache.hoster.$hoster.2 | grep "id=" | sed -nr "s/.*src='([^']+)'.*/\1/p")
530        id=$(cat $TMP/cache.hoster.$hoster.2 | grep "id=" | sed -nr "s/.*id='([^']+)'.*/\1/p")
531
532        $curlbin "$TMPURL2" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.3
533
534        #document.write('<iframe allowfullscreen width="'+width+'" height="'+height+'" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="true" src="http://veremos.date/all.php?id='+id+'&p='+p+'&c='+c+'&stretching='
535        TMPURL3=$(cat $TMP/cache.hoster.$hoster.3 | grep document.write | sed -nr 's/.*src="([^"]+)".*/\1/p')
536
537        #var stretching = 'uniform';
538        stretching=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var stretching = '([^']+)'.*/\1/p")
539
540        #var c = '0';
541        c=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var c = '([^']+)'.*/\1/p")
542
543        #var p = '0';
544        p=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var p = '([^']+)'.*/\1/p")
545
546        #http://veremos.date/all.php?id=bt2i&p=0&c=0&stretching=uniform
547        TMPURL3=$(echo $TMPURL3 | sed -e "s/'+id+'/$id/" -e "s/'+p+'/$p/" -e "s/'+c+'/$c/" -e "s/'+stretching+'/$stretching/")
548
549        #$curlbin http://veremos.date/all.php?id=bt2i&p=0&c=0&stretching=uniform" --referer "http://cricfree.sc/update/bt2.php"
550        $curlbin "$TMPURL3" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.4
551
552        #<iframe allowfullscreen="" width="100%" height="100%" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" allowtransparency="true" src="http://soretin.stream/embeds/1all.php?id=256512&st=vkWS1ifC7TSE10IQKmgUEQ&e=1512815257&amp;p=0&amp;c=0&amp;stretching="></iframe>
553        TMPURL4=$(cat $TMP/cache.hoster.$hoster.4 | grep "<iframe" | sed -nr 's/.*src="([^"]+)".*/\1/p')
554
555        #$curlbin "http://soretin.stream/embeds/1all.php?id=256512&st=jOQy59wu1omnfUnNywQLDA&e=1512812987&p=0&c=0&stretching=" --referer "http://veremos.date/all.php?id=bt2i&p=0&c=0&stretching=uniform"
556        $curlbin "$TMPURL4" --referer "$TMPURL3" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.5
557
558        #return(["h","t","t","p",":","\/","\/","8","0",".","8","2",".","6","5",".","1","6","2","\/","c","a","v","s","c","a","m","p","e","o","n","\/","2","5","6","5","1","2",".","m","3","u","8","?","w","m","s","A","u","t","h","S","i","g","n","2","=","N","W","E","x","N","T","Y","3","Y","W","Y","3","N","j","h","l","Z","g","=","=","&","t","o","k","e","n","="].join("") + yUAerrrlsnutgriaaSbea.join("") + document.getElementById("aieBskfcrugtntihSa").innerHTML);
559        TMPURL=$(cat $TMP/cache.hoster.$hoster.5 | grep 'return(\["' | sed -e 's/","//g' -e 's/\\//g'| cut -d'"' -f2)
560
561        #return(["h","t","t","p",":","\/","\/","8","0",".","8","2",".","6","5",".","1","6","2","\/","c","a","v","s","c","a","m","p","e","o","n","\/","2","5","6","5","1","2",".","m","3","u","8","?","w","m","s","A","u","t","h","S","i","g","n","2","=","N","W","E","x","N","T","Y","3","Y","W","Y","3","N","j","h","l","Z","g","=","=","&","t","o","k","e","n","="].join("") + uaagraneeblAStrsyrrUi.join("") + document.getElementById("rBkacSifaguntesith").innerHTML);
562        #uaagraneeblAStrsyrrUi
563        searchtoken1=$(cat $TMP/cache.hoster.$hoster.5 | grep 'return(\["'| sed -e 's/","//g' -e 's/\\//g' | awk '{ print $3 }' | cut -d"." -f1)
564        #var uaagraneeblAStrsyrrUi = ["3Rp","UJ5","ZoY","c2V","J","jgy","X3Z","9MT","XNo","ydm","ZEp","VyX","0OC","VlP","MDI","bWU","UxM","hbH"];
565        TOKEN1=$(cat $TMP/cache.hoster.$hoster.5 | grep "var $searchtoken1" | sed -e 's/","//g' -e 's/\\//g' | cut -d'"' -f2)
566
567        #return(["h","t","t","p",":","\/","\/","8","0",".","8","2",".","6","5",".","1","6","2","\/","c","a","v","s","c","a","m","p","e","o","n","\/","2","5","6","5","1","2",".","m","3","u","8","?","w","m","s","A","u","t","h","S","i","g","n","2","=","N","W","E","x","N","T","Y","3","Y","W","Y","3","N","j","h","l","Z","g","=","=","&","t","o","k","e","n","="].join("") + uaagraneeblAStrsyrrUi.join("") + document.getElementById("rBkacSifaguntesith").innerHTML);
568        #rBkacSifaguntesith
569        searchtoken2=$(cat $TMP/cache.hoster.$hoster.5 | sed -nr 's/.*document.getElementById\("([^"]+)".*/\1/p')
570        #<span style='display:none' id=uieBiSefkngtshatrc>VZbFOMVlSL3F2lZhaE01Ta9xAWMvwQGwPZnMRY9nZ2ppVXWG</span><span style='display:none' id=suteaentirhgBfkSci>bnMWZL3XFlvAhMVpwPZ0pZ9TFSWnVGwaVMGR9Q22aOYZlEx1</span><span style='display:none' id=tSiBkaefnshuticegr>LWVMAbFZ1VaPhO3MnpF2R29ZlvSEGalwTYp9VMZQX0xZnWwG</span><span style='display:none' id=iecaSftBresutghkin>vVxZVQpVMn0ZS1Pp22nO3hwa9ZFTYRaWGFlMl9wZGEbAXLWM</span><span style='display:none' id=SnstuicrBgfitehake>Th2F1QFSWAZ9MWlPv92Vpw0LOZGwRMXbaV3ZElnMnaYpZVxG</span><span style='display:none' id=stBeiuSheiakfcrngt>bYTxap13WP2ZLlhnMF2GVXlwvWVOASaMEnQw9RVZ90GMZpZF</span><span style='display:none' id=ihenkcraesSiugBftt>wL2xZv9nMXwnZGGaAVVWWQFlZS90EMp3TlaVFP2ORbZpY1Mh</span><span style='display:none' id=hftrceSekuiiastngB>1ZXap0LlnO3VlGGZabWRnFZMMEw2xMvhZwpPVFY9VAWT92SQ</span><span style='display:none' id=inBehfgtcSautirkse>x2a2Zp3OF09XLWQZVbMMwFZnGGRpYnvPha19VEMlATVZWlwS</span><span style='display:none' id=rBkacSifaguntesith>MGZVL2wvanFha3ROWlVFQlE9PSZ2YWxpZG1pbnV0ZXM9MTAw</span><span style='display:none' id=etBirkuaiStfehgcsn>ZA1ZQGZOa39nYpVnWpS2llLwFxvawFVZb0MMPREGhXM2TVW9</span><span style='display:none' id=rshfekaguceSitnBit>pRW2TQMZaVlZ29OWFnXaFMLnV1VxZ3Y0ZGpAb9hPMSwvGEwl</span><span style='display:none' id=irBcttfehsganeSiuk>MTpXZWZb3MvnFZ2wlLFGA9nQpa2SYR9E01VxZGhwWMVOVPla</span><span style='display:none' id=skieftSBngitcuarhe>xAG1QET0WG9lnhZFPpYOa2M9lRZXnaFwVSpWLMbwVZ3MVZv2</span><span style='display:none' id=iSnkrBusfceghttiea>32EbYXWFl1Z2VZMVSGv9pZPMZLaFnaTpAh9OxGlQWMwRVw0n</span><span style='display:none' id=utrtiSfieeasBhnkcg>wZGZWxF2bPpahW9EnMV1TvYw92XlVaMpSLGMQl3OVRnA0FZZ</span><span style='display:none' id=SiisktnfeaghceuBrt>29W1LbRnVlMTZwF2WMEpw9AvGVZ0VYSnZXP3OMhxGZlQpFaa</span><span style='display:none' id=scugBteriiSehafktn>lFTMVV9W3ZhZaA1FMn9YpEvVnaxQL2XSZMpGWbwO2R0lZwPG</span><span style='display:none' id=itefaihSreuBgkcnts>Y0Eb2hQannvFZV2ZGZAaLVZlSMGlFp3V9xXPwMMTR9wO1WWp</span><span style='display:none' id=aecnhiigtuekfSrsBt>naYZSMMPbQnvE9hTVW3Ga2pwZ0GMRZwXpWFZ2llLAxOVVF19</span><span style='display:none' id=citeehgiustarnBSkf>XG29ZphlbYMLSaZ9V3PwWlQpGM12a0ZZvEFwVxWAFOMVnnRT</span><span style='display:none' id=rtcenehgusaikBSfit>3hpv2ZnVXV9lWlYxV0M9wMWPSMAnGa2ZQFROpab1ZwZETGLF</span><span style='display:none' id=csSnhfBitteguakeir>ZnXhv2GpMZP0xaAMQ1YVV9lZROWwaFnWT3M9ZlwF2pEVGLbS</span><span style='display:none' id=stigfkinrehBSaceut>p2wl0RQG3OFZhFMnaTxXV9pvZA2LMbVESWlZaVP1YZwMnG9W</span><html>
571        #MGZVL2wvanFha3ROWlVFQlE9PSZ2YWxpZG1pbnV0ZXM9MTAw
572        TOKEN2=$(cat $TMP/cache.hoster.$hoster.5 | sed "s/id=$searchtoken2/\nfoundid=/" | grep ^"foundid=" | cut -d'>' -f2 | cut -d'<' -f1)
573
574        if [ ! -z "$TMPURL" ];then
575#               echo "$TMPURL$token1$token2$EXTRA" > $STREAMLIST
576                #http://89.248.172.95/cavscampeon/256512.m3u8?wmsAuthSign2=NWExNTY3YWY3NjhlZg==&token=c2VydmVyX3RpbWU9MTUxMjgxMjM4NyZoYXNoX3ZhbHVlPVNrcndRU0Z2Mlp2QlUvbjg4N0lLQWc9PSZ2YWxpZG1pbnV0ZXM9MTAw|Referer=http%3A%2F%2Fsoretin.stream%2Fembeds%2F1all.php%3Fid%3D256512%26st%3DjOQy59wu1omnfUnNywQLDA%26e%3D1512812987%26p%3D0%26c%3D0%26stretching%3D&User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36&X-Requested-With=ShockwaveFlash/23.0.0.162
577
578                echo "$TMPURL$TOKEN1$TOKEN2" > $STREAMLIST
579
580                #echo "$URL$EXTRA"
581                echo "$STREAMLIST"
582        fi
583}
584
585broadcast()
586{
587        #http://assia.tv/live/gol-tv/?lang=ru
588        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
589        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
590        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
591
592        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
593        if [ -e "$STREAMLIST" ];then
594                rm -f $STREAMLIST > /dev/null 2>&1
595        fi
596
597        #$curlbin --referer "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0" "http://bro.adca.st/token2.php"
598        $curlbin "http://bro.adca.st/token2.php" --referer "$INPUT" -o $TMP/cache.hoster.$hoster.1
599
600        #{"rumba":"ruYg748QTLGfAn2iZo3bpw&expires=1512880893"}
601        TOKEN=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*"rumba":"([^"]+)".*/\1/p' | tail -n1)
602
603        #$curlbin --referer "http://bonstreams.net" "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0"
604        $curlbin "$INPUT" --referer "http://bonstreams.net" -o $TMP/cache.hoster.$hoster.2
605
606    #trap = "aHR0cDovL3RpZXIyLnBva2VyY29hbGl0aW9uLnB3L28xMC8xNzczMy5tM3U4P3NmPU5UazVOR0UzWXpSaE16bGpOUT09JnRva2VuPQ=
607        TRAP=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*trap = "([^"]+)".*/\1/p' | tail -n1)
608
609        echo "$TRAP" > $TMP/cache.hoster.$hoster.base64
610        TMPURL=$(base64 -d $TMP/cache.hoster.$hoster.base64)
611
612        # enable httponly cookie
613        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
614
615        if [ ! -z "$TMPURL" ];then
616                #hls://http://tier2.pokercoalition.pw/o10/17733.m3u8?sf=NTk5NGE3YzRhMzljNQ==&token=jvVfe9gic8uQ3QqCXmZemw&expires=1512879969|Referer=http%3A%2F%2Fbro.adca.st%2Fstream.php%3Fid%3D17733%26p%3D1%26c%3D0%26stretching%3Duniform%26old%3D0&User-Agent=Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML,%20like%20Gecko)%20Chrome%2F61.0.3163.100%20Safari%2F537.36
617                echo "$TMPURL$TOKEN$EXTRA" > $STREAMLIST
618                echo "$STREAMLIST"
619        fi
620}
621
622all()
623{
624        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
625        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
626        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
627
628        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
629        if [ -e "$STREAMLIST" ];then
630                rm -f $STREAMLIST > /dev/null 2>&1
631        fi
632
633        rm $TMP/cache.$PARSER.$INPUT.$FROM.1 > /dev/null 2>&1
634
635        $curlbin -o $TMP/cache.$PARSER.$INPUT.$FROM.1 ${1}
636        URL=`zcat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
637        if [ -z "$URL" ];then
638                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
639        fi
640        if [ -z "$URL" ];then
641                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep "text/javascript" | grep -v jQuery | sed -nr 's/.*src="([^"]+)".*/\1/p'`
642        fi
643
644#       echo $URL
645        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.2
646}
647
648
649directstream()
650{
651        echo "$INPUT"
652#       rm -f /tmp/_last_hoster_* > /dev/null 2>&1
653        echo  "$INPUT" > /tmp/.last_hoster_$hoster.log
654}
655
656youtube_dl()
657{
658#       echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dl.log
659#       $BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --format mp4 --restrict-filenames --ignore-errors -g "$INPUT" > /tmp/youtube_dl.streamlink.log 2>&1
660#       cat /tmp/youtube_dl.streamlink.log | tail -n1
661        mkdir $TMP > /dev/null 2>&1
662
663        echo "$BIN $youtubebin $INPUT --username $USER --password $PASS" > /tmp/.last_hoster_youtube_dl.log
664
665        $BIN $youtubebin "$INPUT" --username "$USER" --password "$PASS" > $TMP/$TYPE.$hoster.$FILENAME.streamlist
666#       cat $TMP/$TYPE.$hoster.$FILENAME.streamlist
667        echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
668}
669
670youtube_dlbg()
671{
672#       echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_youtube_dlbg.log
673#       URL=`$BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --format mp4 --restrict-filenames --ignore-errors --output "$1" "$2"`
674#       echo "$URL" >> /tmp/.last_hoster_youtube_dlbg.log
675#       echo $URL
676        mkdir $TMP > /dev/null 2>&1
677
678        echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_$TYPE.log
679        $BIN $youtubebinbg "$DEST" "$INPUT" >> /tmp/.last_hoster_$TYPE.log
680        cat /tmp/.last_hoster_$TYPE.log | tail -n1
681#       echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
682}
683
684hlsdl()
685{
686        mkdir $TMP > /dev/null 2>&1
687
688        echo "$HLSBIN $hlsdlbg $DEST $INPUT" > /tmp/.last_hoster_$TYPE.log
689
690        REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+)&.*/\1/p')
691        if [ -z "$REFERER" ];then
692                REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+).*/\1/p')
693        fi
694
695        if [ ! -z "$REFERER" ];then
696                REFERER="Referer: $REFERER"
697        fi
698
699        TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+)&.*/\1/p')
700        if [ -z "$TMPUSERAGENT" ];then
701                TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+).*/\1/p')
702        fi
703        if [ ! -z "$TMPUSERAGENT" ];then
704                USERAGENT=$TMPUSERAGENT
705        fi
706
707        URL=$(echo "$INPUT" | tr '|' '\n' | head -n1)
708
709        echo $HLSBIN "$URL" -v -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
710        $HLSBIN "$URL" -v -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
711#       $HLSBIN "$URL" -v -u "$USERA" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
712
713}
714
715
716if [ "$TYPE" == "get" ];then
717        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
718        case $hoster in
719                ecostream) ecostream $INPUT;;
720                giga) giga $INPUT;;
721                nosvideo) nosvideo $INPUT;;
722                allmyvideos) allmyvideos $INPUT;;
723                flashx) flashx $INPUT;;
724                openload|oload) openload $INPUT;;
725                briskfile) briskfile $INPUT;;
726                videoweed|bitvid) videoweed $INPUT;;
727                vodlocker) vodlocker $INPUT;;
728                youwatch|chouhaa|ay8ou8ohth) youwatch $INPUT;;
729                thevideo) thevideo $INPUT;;
730                movshare|wholecloud|vidgg) movshare $INPUT;;
731                vidto) vidto $INPUT;;
732                vidup) vidup $INPUT;;
733                vidzi) vidzi $INPUT;;
734                vivo) vivo $INPUT;;
735                goldesel|movie4k|movie4kto|kinox|kinos) cloudflare $INPUT;;
736                streamcloud1) streamcloud $INPUT;;     
737                nowvideo) nowvideo $INPUT;;
738                divxstage|cloudtime) divxstage $INPUT;;
739                novamov|auroravid) novamov $INPUT;;
740                xvidstage) xvidstage $INPUT;;
741                waaw|netu|hqq) waaw $INPUT;;
742                streamango|streamcherry) streamango $INPUT;;
743                vidlox) vidlox $INPUT;;
744                redirector|googlevideo|vodcloud|google|skyfall|s4) directstream "$INPUT";;
745                aliez) aliez $INPUT;;
746                sport7) sport7 $INPUT;;
747                sportstream365) sportstream365 $INPUT;;
748                sportsonline) sportsonline $INPUT;;
749                assia) assia $INPUT;;
750                cricfree) cricfree $INPUT;;
751                adca) broadcast $INPUT;;
752#               *) all $INPUT;;
753        esac
754fi
755
756if [ "$TYPE" == "hoster" ];then
757        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
758        case $hoster in
759                kinox|kinos) kinox $INPUT;;
760        esac
761fi
762
763if [ "$TYPE" == "youtube_dl" ];then
764        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
765        case $hoster in
766                *) youtube_dl $INPUT $USER $PASS;;
767        esac
768fi
769
770if [ "$TYPE" == "youtube_dlbg" ];then
771        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
772        case $hoster in
773                *) youtube_dlbg $DEST $INPUT;;
774        esac
775fi
776
777if [ "$TYPE" == "hlsdl" ];then
778        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
779        case $hoster in
780                *) hlsdl $INPUT;;
781        esac
782fi
Note: See TracBrowser for help on using the repository browser.