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

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

fix

  • Property svn:executable set to *
File size: 31.1 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        rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1
213        $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1
214        if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
215                ERROR=`cat $TMP/cache.hoster.$hoster.1 | grep urllib2.HTTPError:`
216                echo "errormsg=$ERROR"
217        else
218                cat $TMP/cache.hoster.$hoster.1
219        fi
220}
221
222kinox()
223{
224        mkdir $TMP > /dev/null 2>&1
225        rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1
226
227        if [ "$TYPE" == "get" ];then
228                $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1
229                if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
230                        ERROR=`echo $INPUT | grep urllib2.HTTPError:`
231                        echo "errormsg=$ERROR"
232                else
233                        cat $TMP/cache.hoster.$hoster.1
234                fi
235        elif [ "$TYPE" == "hoster" ];then
236
237                if [ `echo $INPUT | grep "/aGET/" | wc -l` -eq 1 ];then
238                        URL=`$BIN $CMD/cloudflare.py $INPUT | tr -d '\\' | sed -nr 's/.*<iframe src="([^"]+)".*/\1/p'`
239                        if [ -z "$URL" ];then
240                                URL=`$BIN $CMD/cloudflare.py $INPUT | tr -d '\\' | sed -nr 's/.*<a href="([^"]+)".*/\1/p'`
241                        fi
242                        if [ `echo $URL | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
243                                ERROR=`echo $INPUT | grep urllib2.HTTPError:`
244                                echo "errormsg=$ERROR"
245                        else
246                                if [ `echo $URL | grep ^"//" | wc -l` -eq 1 ];then
247                                        echo "http:$URL"
248                                else
249                                        echo "$URL"
250                                fi
251                        fi
252                else
253                        $BIN $CMD/cloudflare.py $INPUT         
254                fi     
255        fi
256}
257
258nowvideo()
259{
260        $BIN $CMD/nowvideo.py $INPUT
261}
262
263divxstage()
264{
265        $BIN $CMD/divxstage.py $INPUT
266}
267
268novamov()
269{
270        $BIN $CMD/novamov.py $INPUT
271}
272
273xvidstage()
274{
275        $BIN $CMD/xvidstage.py $INPUT
276}
277
278waaw()
279{
280        $BIN $CMD/waaw.py $INPUT
281}
282
283streamango()
284{
285        $BIN $CMD/streamango.py $INPUT
286}
287
288vidlox()
289{
290        $BIN $CMD/vidlox.py $INPUT
291}
292
293vodlocker()
294{
295        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
296
297        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
298        if [ -e "$STREAMLIST" ];then
299                rm -f $STREAMLIST > /dev/null 2>&1
300        fi
301
302        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
303        cat $TMP/cache.hoster.$hoster.1 | sed 's/<source src=/\nfound=/g' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.1.url1
304        URL=`cat $TMP/cache.hoster.$hoster.1.url1`
305
306        if [ ! -z "$URL" ];then
307#               echo "$URL" >> $STREAMLIST
308
309                REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
310                echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT" >> $STREAMLIST
311#               echo "$URL|User-Agent=$USERAGENT" >> $STREAMLIST
312
313                sed 's/#HttpOnly_//g' -i /mnt/network/cookies
314
315        fi
316
317        URL=$STREAMLIST
318
319        echo "$URL"
320}
321
322aliezold()
323{
324        URL=`$curlbin "$INPUT" | sed 's/source:/\nsource:/' | grep ^source: | cut -d"'" -f2`
325        REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
326        echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
327}
328
329aliez()
330{
331        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
332        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
333        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
334        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
335
336        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
337        if [ -e "$STREAMLIST" ];then
338                rm -f $STREAMLIST > /dev/null 2>&1
339        fi
340
341        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
342        cat $TMP/cache.hoster.$hoster.1 | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
343        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
344        if [ ! -z "$URL" ];then
345                echo "$URL$EXTRA" >> $STREAMLIST
346        fi
347#       URL=""
348        #file:  'http://a3.aliez.me:8080/hls/streama57449/index.m3u8?st=dgw2dOq8tyFkLLBLn2ycXA',
349
350        cat $TMP/cache.hoster.$hoster.1 | sed 's/file:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url2
351        URL=`cat $TMP/cache.hoster.$hoster.url2 | head -n1`
352        if [ ! -z "$URL" ];then
353                echo "$URL$EXTRA" >> $STREAMLIST
354        fi
355#URL=""
356        #"file":                "rtmp%3A%2F%2Fa3.aliez.me%2Flive%2Fstreama57449%3Ftoken%3Dd11304fabb8e64327df8427e1c2fd5d9"
357        cat $TMP/cache.hoster.$hoster.1 | sed 's/"file":/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3
358        URL=`cat $TMP/cache.hoster.$hoster.url3 | head -n1`
359
360        if [ "`echo $URL | grep rtmp | wc -l`" -eq 1 ];then
361                #new swfobject.embedSWF("http://i.aliez.me/swf/playernew.swf?0", "mediaspace", "700", "480", "9.0.115.0", false, flashvars, params);
362                cat $TMP/cache.hoster.$hoster.1 | sed 's/swfobject.embedSWF/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3.rtmp.swfurl
363                SWFURL=`cat $TMP/cache.hoster.$hoster.url3.rtmp.swfurl | head -n1`
364                URL=`echo "$URL" | sed -e 's/%3A/:/g' -e 's!%2F!/!g' -e 's!%3D!=!g' -e 's!%3F!?!g'`
365                EXTRA=" pageUrl=$REFERER"
366                if [ ! -z "$SWFURL" ];then
367                        EXTRA="$EXTRA swfUrl=$SWFURL swfVfy=1 timeout=15 live=1"
368                fi
369                if [ ! -z "$URL" ];then
370                        echo "$URL$EXTRA" >> $STREAMLIST
371                fi
372        fi
373        URL=$STREAMLIST
374
375
376        echo "$URL"
377}
378
379sport7()
380{
381        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
382        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
383
384        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
385        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
386        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
387
388        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
389        if [ -e "$STREAMLIST" ];then
390                rm -f $STREAMLIST > /dev/null 2>&1
391        fi
392
393        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
394        cat $TMP/cache.hoster.$hoster.1 | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
395        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
396        # enable httponly cookie
397        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
398
399        if [ ! -z "$URL" ];then
400                echo "$URL$EXTRA" > $STREAMLIST
401                #echo "$URL$EXTRA"
402                echo "$STREAMLIST"
403        fi
404       
405       
406#       URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2`
407#       REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
408#       sed 's/#HttpOnly_//g' -i /mnt/network/cookies
409#       echo "$URL|Referer=$REFERER&X-f=96.91.79.87&User-Agent=$USERAGENT"
410#       cat $STREAMLIST
411}
412
413sportstream365()
414{
415        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
416        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
417
418        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
419#       REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
420        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
421        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
422
423        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
424        if [ -e "$STREAMLIST" ];then
425                rm -f $STREAMLIST > /dev/null 2>&1
426        fi
427
428        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
429
430        #<input type="hidden" name="game" value="146875046">
431        id=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*name="game" value="([^"]+)".*/\1/p')
432        ts=$(date +%s)
433        URL="http://sportstream365.com/LiveFeed/GetGame?id=$id&partner=24"
434
435        $curlbin "$URL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
436
437
438        #"VI":"1032572"
439        id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI" :"([^"]+)".*/\1/p')
440        if [ -z "$id" ];then
441                id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI":"([^"]+)".*/\1/p')
442        fi
443        #https://github.com/XvBMC/repository.xvbmc/blob/master/Dependencies/script.module.liveresolver/lib/liveresolver/resolvers/sportstream365.py
444        URL=http://93.189.57.254/edge0/xrecord/$id/prog_index.m3u8
445        # enable httponly cookie
446        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
447
448        if [ ! -z "$URL" ];then
449                echo "$URL$EXTRA" > $STREAMLIST
450                #echo "$URL$EXTRA"
451                echo "$STREAMLIST"
452        fi
453}
454
455sportsonline()
456{
457        #http://sportsonline.pw/livetv/pt-sporttv1.html
458        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
459        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
460        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
461
462        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
463        if [ -e "$STREAMLIST" ];then
464                rm -f $STREAMLIST > /dev/null 2>&1
465        fi
466
467        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
468
469        #<iframe src="http://widestream.io/embedClappr.php?live=13593" width="100%" height="100%" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>
470        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*iframe src="([^"]+)".*/\1/p')
471
472        $curlbin "$TMPURL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
473
474        #source: "http://ultra.widestream.io:8081/wideedge/1022qvk/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvOS8yMDE3IDEyOjMyOjQzIEFNJmhhc2hfdmFsdWU9ZW9WeThRL0JmaVA2dnFUQm15Ukkvdz09JnZhbGlkbWludXRlcz0yMA==",
475        TMPURL=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*source: "([^"]+)".*/\1/p')
476
477        if [ ! -z "$TMPURL" ];then
478                echo "$TMPURL$EXTRA" > $STREAMLIST
479                #echo "$URL$EXTRA"
480                echo "$STREAMLIST"
481        fi
482}
483
484assia()
485{
486        #http://assia.tv/live/gol-tv/?lang=ru
487        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
488        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
489        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
490
491        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
492        if [ -e "$STREAMLIST" ];then
493                rm -f $STREAMLIST > /dev/null 2>&1
494        fi
495
496        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
497
498        #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);}});
499        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*file:"([^"]+)".*/\1/p' | tail -n1)
500
501        if [ ! -z "$TMPURL" ];then
502                echo "$TMPURL$EXTRA" > $STREAMLIST
503                #echo "$URL$EXTRA"
504                #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
505
506                echo "$STREAMLIST"
507        fi
508}
509
510cricfree()
511{
512        #http://cricfree.sc/update/bt2.php
513        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
514        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
515        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
516
517        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
518        if [ -e "$STREAMLIST" ];then
519                rm -f $STREAMLIST > /dev/null 2>&1
520        fi
521
522        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
523
524        #<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>
525        TMPURL1=$(cat $TMP/cache.hoster.$hoster.1 | grep "<iframe" | grep cricfree | sed -nr 's/.*src="([^"]+)".*/\1/p')
526
527#       $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
528        $curlbin "$TMPURL1" -o $TMP/cache.hoster.$hoster.2
529
530        #<script type='text/javascript'>id='bt2i'; width='620'; height='490';</script><script type='text/javascript' src='http://hi.notkodi.science/streamgame.js'></script>
531        TMPURL2=$(cat $TMP/cache.hoster.$hoster.2 | grep "id=" | sed -nr "s/.*src='([^']+)'.*/\1/p")
532        id=$(cat $TMP/cache.hoster.$hoster.2 | grep "id=" | sed -nr "s/.*id='([^']+)'.*/\1/p")
533
534        $curlbin "$TMPURL2" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.3
535
536        #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='
537        TMPURL3=$(cat $TMP/cache.hoster.$hoster.3 | grep document.write | sed -nr 's/.*src="([^"]+)".*/\1/p')
538
539        #var stretching = 'uniform';
540        stretching=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var stretching = '([^']+)'.*/\1/p")
541
542        #var c = '0';
543        c=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var c = '([^']+)'.*/\1/p")
544
545        #var p = '0';
546        p=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var p = '([^']+)'.*/\1/p")
547
548        #http://veremos.date/all.php?id=bt2i&p=0&c=0&stretching=uniform
549        TMPURL3=$(echo $TMPURL3 | sed -e "s/'+id+'/$id/" -e "s/'+p+'/$p/" -e "s/'+c+'/$c/" -e "s/'+stretching+'/$stretching/")
550
551        #$curlbin http://veremos.date/all.php?id=bt2i&p=0&c=0&stretching=uniform" --referer "http://cricfree.sc/update/bt2.php"
552        $curlbin "$TMPURL3" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.4
553
554        #<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>
555        TMPURL4=$(cat $TMP/cache.hoster.$hoster.4 | grep "<iframe" | sed -nr 's/.*src="([^"]+)".*/\1/p')
556
557        #$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"
558        $curlbin "$TMPURL4" --referer "$TMPURL3" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.5
559
560        #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);
561        TMPURL=$(cat $TMP/cache.hoster.$hoster.5 | grep 'return(\["' | sed -e 's/","//g' -e 's/\\//g'| cut -d'"' -f2)
562
563        #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);
564        #uaagraneeblAStrsyrrUi
565        searchtoken1=$(cat $TMP/cache.hoster.$hoster.5 | grep 'return(\["'| sed -e 's/","//g' -e 's/\\//g' | awk '{ print $3 }' | cut -d"." -f1)
566        #var uaagraneeblAStrsyrrUi = ["3Rp","UJ5","ZoY","c2V","J","jgy","X3Z","9MT","XNo","ydm","ZEp","VyX","0OC","VlP","MDI","bWU","UxM","hbH"];
567        TOKEN1=$(cat $TMP/cache.hoster.$hoster.5 | grep "var $searchtoken1" | sed -e 's/","//g' -e 's/\\//g' | cut -d'"' -f2)
568
569        #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);
570        #rBkacSifaguntesith
571        searchtoken2=$(cat $TMP/cache.hoster.$hoster.5 | sed -nr 's/.*document.getElementById\("([^"]+)".*/\1/p')
572        #<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>
573        #MGZVL2wvanFha3ROWlVFQlE9PSZ2YWxpZG1pbnV0ZXM9MTAw
574        TOKEN2=$(cat $TMP/cache.hoster.$hoster.5 | sed "s/id=$searchtoken2/\nfoundid=/" | grep ^"foundid=" | cut -d'>' -f2 | cut -d'<' -f1)
575
576        if [ ! -z "$TMPURL" ];then
577#               echo "$TMPURL$token1$token2$EXTRA" > $STREAMLIST
578                #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
579
580                echo "$TMPURL$TOKEN1$TOKEN2" > $STREAMLIST
581
582                #echo "$URL$EXTRA"
583                echo "$STREAMLIST"
584        fi
585}
586
587broadcast()
588{
589        #http://assia.tv/live/gol-tv/?lang=ru
590        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
591        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
592        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
593
594        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
595        if [ -e "$STREAMLIST" ];then
596                rm -f $STREAMLIST > /dev/null 2>&1
597        fi
598
599        #$curlbin --referer "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0" "http://bro.adca.st/token2.php"
600        $curlbin "http://bro.adca.st/token2.php" --referer "$INPUT" -o $TMP/cache.hoster.$hoster.1
601
602        #{"rumba":"ruYg748QTLGfAn2iZo3bpw&expires=1512880893"}
603        TOKEN=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*"rumba":"([^"]+)".*/\1/p' | tail -n1)
604
605        #$curlbin --referer "http://bonstreams.net" "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0"
606        $curlbin "$INPUT" --referer "http://bonstreams.net" -o $TMP/cache.hoster.$hoster.2
607
608    #trap = "aHR0cDovL3RpZXIyLnBva2VyY29hbGl0aW9uLnB3L28xMC8xNzczMy5tM3U4P3NmPU5UazVOR0UzWXpSaE16bGpOUT09JnRva2VuPQ=
609        TRAP=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*trap = "([^"]+)".*/\1/p' | tail -n1)
610
611        echo "$TRAP" > $TMP/cache.hoster.$hoster.base64
612        TMPURL=$(base64 -d $TMP/cache.hoster.$hoster.base64)
613
614        # enable httponly cookie
615        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
616
617        if [ ! -z "$TMPURL" ];then
618                #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
619                echo "$TMPURL$TOKEN$EXTRA" > $STREAMLIST
620                echo "$STREAMLIST"
621        fi
622}
623
624all()
625{
626        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
627        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
628        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
629
630        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
631        if [ -e "$STREAMLIST" ];then
632                rm -f $STREAMLIST > /dev/null 2>&1
633        fi
634
635        rm $TMP/cache.$PARSER.$INPUT.$FROM.1 > /dev/null 2>&1
636
637        $curlbin -o $TMP/cache.$PARSER.$INPUT.$FROM.1 ${1}
638        URL=`zcat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
639        if [ -z "$URL" ];then
640                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
641        fi
642        if [ -z "$URL" ];then
643                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep "text/javascript" | grep -v jQuery | sed -nr 's/.*src="([^"]+)".*/\1/p'`
644        fi
645
646#       echo $URL
647        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.2
648}
649
650
651directstream()
652{
653        echo "$INPUT"
654#       rm -f /tmp/_last_hoster_* > /dev/null 2>&1
655        echo  "$INPUT" > /tmp/.last_hoster_$hoster.log
656}
657
658youtube_dl()
659{
660#       echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dl.log
661#       $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
662#       cat /tmp/youtube_dl.streamlink.log | tail -n1
663        mkdir $TMP > /dev/null 2>&1
664
665        echo "$BIN $youtubebin $INPUT --username $USER --password $PASS" > /tmp/.last_hoster_youtube_dl.log
666
667        $BIN $youtubebin "$INPUT" --username "$USER" --password "$PASS" > $TMP/$TYPE.$hoster.$FILENAME.streamlist
668#       cat $TMP/$TYPE.$hoster.$FILENAME.streamlist
669        echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
670}
671
672youtube_dlbg()
673{
674#       echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_youtube_dlbg.log
675#       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"`
676#       echo "$URL" >> /tmp/.last_hoster_youtube_dlbg.log
677#       echo $URL
678        mkdir $TMP > /dev/null 2>&1
679
680        echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_$TYPE.log
681        $BIN $youtubebinbg "$DEST" "$INPUT" >> /tmp/.last_hoster_$TYPE.log
682        cat /tmp/.last_hoster_$TYPE.log | tail -n1
683#       echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
684}
685
686hlsdl()
687{
688        mkdir $TMP > /dev/null 2>&1
689
690        echo "$HLSBIN $hlsdlbg $DEST $INPUT" > /tmp/.last_hoster_$TYPE.log
691
692        REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+)&.*/\1/p')
693        if [ -z "$REFERER" ];then
694                REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+).*/\1/p')
695        fi
696
697        if [ ! -z "$REFERER" ];then
698                REFERER="Referer: $REFERER"
699        fi
700
701        TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+)&.*/\1/p')
702        if [ -z "$TMPUSERAGENT" ];then
703                TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+).*/\1/p')
704        fi
705        if [ ! -z "$TMPUSERAGENT" ];then
706                USERAGENT=$TMPUSERAGENT
707        fi
708
709        URL=$(echo "$INPUT" | tr '|' '\n' | head -n1)
710
711        echo $HLSBIN "$URL" -v -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
712        $HLSBIN "$URL" -v -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
713#       $HLSBIN "$URL" -v -u "$USERA" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
714
715}
716
717
718if [ "$TYPE" == "get" ];then
719        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
720        case $hoster in
721                ecostream) ecostream $INPUT;;
722                giga) giga $INPUT;;
723                nosvideo) nosvideo $INPUT;;
724                allmyvideos) allmyvideos $INPUT;;
725                flashx) flashx $INPUT;;
726                openload|oload) openload $INPUT;;
727                briskfile) briskfile $INPUT;;
728                videoweed|bitvid) videoweed $INPUT;;
729                vodlocker) vodlocker $INPUT;;
730                youwatch|chouhaa|ay8ou8ohth) youwatch $INPUT;;
731                thevideo) thevideo $INPUT;;
732                movshare|wholecloud|vidgg) movshare $INPUT;;
733                vidto) vidto $INPUT;;
734                vidup) vidup $INPUT;;
735                vidzi) vidzi $INPUT;;
736                vivo) vivo $INPUT;;
737                goldesel|movie4k|movie4kto|kinox|kinos|kinoxto) cloudflare $INPUT;;
738                streamcloud1) streamcloud $INPUT;;     
739                nowvideo) nowvideo $INPUT;;
740                divxstage|cloudtime) divxstage $INPUT;;
741                novamov|auroravid) novamov $INPUT;;
742                xvidstage) xvidstage $INPUT;;
743                waaw|netu|hqq) waaw $INPUT;;
744                streamango|streamcherry) streamango $INPUT;;
745                vidlox) vidlox $INPUT;;
746                redirector|googlevideo|vodcloud|google|skyfall|s4) directstream "$INPUT";;
747                aliez) aliez $INPUT;;
748                sport7) sport7 $INPUT;;
749                sportstream365) sportstream365 $INPUT;;
750                sportsonline) sportsonline $INPUT;;
751                assia) assia $INPUT;;
752                cricfree) cricfree $INPUT;;
753                adca) broadcast $INPUT;;
754#               *) all $INPUT;;
755        esac
756fi
757
758if [ "$TYPE" == "hoster" ];then
759        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
760        case $hoster in
761                kinox|kinos|kinoxto) kinox $INPUT;;
762        esac
763fi
764
765if [ "$TYPE" == "youtube_dl" ];then
766        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
767        case $hoster in
768                *) youtube_dl $INPUT $USER $PASS;;
769        esac
770fi
771
772if [ "$TYPE" == "youtube_dlbg" ];then
773        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
774        case $hoster in
775                *) youtube_dlbg $DEST $INPUT;;
776        esac
777fi
778
779if [ "$TYPE" == "hlsdl" ];then
780        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
781        case $hoster in
782                *) hlsdl $INPUT;;
783        esac
784fi
Note: See TracBrowser for help on using the repository browser.