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

Last change on this file since 42140 was 42140, checked in by obi, 3 years ago

fix youtube

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