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

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

tithek add livehoster sportstream365.com

  • Property svn:executable set to *
File size: 16.1 KB
Line 
1#!/bin/sh
2# first sh box hoster for titannit mfg obi
3
4TYPE=$1
5INPUT=$2
6DEST=$3
7
8INPUT=`echo $INPUT | sed 's!/Out/?s=!!g'`
9
10#FILENAME="`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` $INPUT $PAGE $NEXT"
11FILENAME="`echo $INPUT | 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'`"
12PICNAME=`echo $FILENAME`
13
14if [ -z "$FILENAME" ]; then
15        FILENAME=none
16fi
17
18
19ARCH=`cat /etc/.arch`
20BOX=`cat /etc/model`
21TMP=/tmp/localcache
22CMD=/tmp/localhoster
23BIN="$CMD"/bin/python."$ARCH"
24HLSBIN="$CMD"/bin/hlsdl."$ARCH"
25#USERAGENT='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
26USERAGENT='Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
27debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
28curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
29curlbin2="curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
30youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
31youtubebinbg="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors --output"
32hlsdlbg="$HLSBIN -u $USERAGENT -o"
33
34export PYTHONHOME=/tmp/localhoster
35export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
36
37
38if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
39if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi
40if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi
41
42wgetbin="wget -q -T2"
43
44if [ ! -e "/tmp/localhoster/lib/python2.7/lib-dynload" ] && [ -e /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" ];then
45#       ln -fs /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
46        mv -f /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
47        rm -rf /tmp/localhoster/lib/python2.7/lib-dynload.*
48fi
49if [ ! -e "/tmp/localhoster/lib/libpython2.7.so.1.0" ] && [ -e /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" ];then
50#       ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
51        mv -f /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
52        rm -f /tmp/localhoster/lib/libpython2.7.so.1.0.*
53fi
54if [ ! -e "/tmp/localhoster/lib/libcrypto.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" ];then
55#       ln -fs /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
56        mv -f /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
57        rm -f /tmp/localhoster/lib/libcrypto.so.1.0.0.*
58fi
59if [ ! -e "/tmp/localhoster/lib/libssl.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" ];then
60#       ln -fs /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/llibssl.so.1.0.0
61        mv -f /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/libssl.so.1.0.0
62        rm -f /tmp/localhoster/lib/libssl.so.1.0.0.*
63fi
64
65if [ -e "$TMP/hoster.tar" ]; then rm -f $TMP/hoster.tar; fi
66if [ -e "$TMP/parser.tar" ]; then rm -f $TMP/parser.tar; fi
67
68if [ "$ARCH" == "sh4" ] && [ "$BOX" != "ufs912" ]; then
69        if [ -e "$CMD/lib/python2.7/lib-dynload.mipsel" ]; then rm -rf $CMD/lib/python2.7/lib-dynload.mipsel; fi
70        if [ -e "$CMD/lib/python2.7/lib-dynload.arm" ]; then rm -rf $CMD/lib/python2.7/lib-dynload.arm; fi
71
72        if [ -e "$CMD/lib/libpython2.7.so.1.0.mipsel" ]; then rm -rf $CMD/lib/libpython2.7.so.1.0.mipsel; fi
73        if [ -e "$CMD/lib/libpython2.7.so.1.0.arm" ]; then rm -rf $CMD/lib/libpython2.7.so.1.0.arm; fi
74
75        if [ -e "$CMD/lib/libssl.so.1.0.0.mipsel" ]; then rm -rf $CMD/lib/libssl.so.1.0.0.mipsel; fi
76        if [ -e "$CMD/lib/libssl.so.1.0.0.arm" ]; then rm -rf $CMD/lib/libssl.so.1.0.0.arm; fi
77
78        if [ -e "$CMD/lib/libcrypto.so.1.0.0.mipsel" ]; then rm -rf $CMD/lib/libcrypto.so.1.0.0.mipsel; fi
79        if [ -e "$CMD/lib/libcrypto.so.1.0.0.arm" ]; then rm -rf $CMD/lib/libcrypto.so.1.0.0.arm; fi
80fi
81
82hostercheck=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | tr '.' '\n' | wc -l`
83hosterline=`expr $hostercheck - 1`
84hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | cut -d"." -f$hosterline`
85#echo $hoster
86
87ecostream()
88{
89        hosterurl=http://www.ecostream.tv
90        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`"
91        streampage=`$curlbin $hosterurl/js/ecoss.js | grep "$.post('" | grep videos | cut -d"'" -f2`
92        streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $INPUT $hosterurl/$streampage | cut -d'"' -f6`
93        if [ "`echo $streamurl | grep DOCTYPE | wc -l`" -eq 0 ] && [ "$streamurl" != "$hosterurl" ];then
94                echo $streamurl
95        fi
96}
97
98giga()
99{
100        streampage=`$curlbin $INPUT | grep "<iframe src=" | cut -d'"' -f2 | head -n1`
101        streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 1080p`
102        if [ -z "$streamurl" ];then
103                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 720p`
104        fi
105        if [ -z "$streamurl" ];then
106                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 480p`
107        fi
108        if [ -z "$streamurl" ];then
109                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 360p`
110        fi
111        if [ -z "$streamurl" ];then
112                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 240p`
113        fi
114        if [ -z "$streamurl" ];then
115                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 180p`
116        fi
117        echo $streamurl
118}
119
120vidup()
121{
122        $BIN $CMD/vidup.py $INPUT
123}
124
125nosvideo()
126{
127        $BIN $CMD/nosvideo.py $INPUT
128}
129
130allmyvideos()
131{
132        $BIN $CMD/allmyvideos.py $INPUT
133}
134
135flashx()
136{
137        $BIN $CMD/flashx.py $INPUT
138}
139
140openload()
141{
142        $BIN $CMD/openload.py $INPUT
143}
144
145briskfile()
146{
147        $BIN $CMD/briskfile.py $INPUT
148}
149
150vodlocker()
151{
152        $BIN $CMD/vodlocker.py $INPUT
153}
154
155videoweed()
156{
157        $BIN $CMD/videoweed.py $INPUT
158}
159
160vodzi()
161{
162        $BIN $CMD/vodzi.py $INPUT
163}
164
165youwatch()
166{
167        $BIN $CMD/youwatch.py $INPUT
168}
169
170thevideo()
171{
172        $BIN $CMD/thevideo.py $INPUT
173}
174
175movshare()
176{
177        $BIN $CMD/movshare.py $INPUT
178}
179
180streamcloud()
181{
182        $BIN $CMD/streamcloud.py $INPUT
183}
184
185vidzi()
186{
187        $BIN $CMD/vidzi.py $INPUT
188}
189
190vivo()
191{
192        $BIN $CMD/vivo.py $INPUT
193}
194
195vidto()
196{
197        $BIN $CMD/vidto.py $INPUT
198}
199
200goldesel()
201{
202        $BIN $CMD/goldesel.py $INPUT
203}
204
205cloudflare()
206{
207        $BIN $CMD/cloudflare.py $INPUT
208}
209
210nowvideo()
211{
212        $BIN $CMD/nowvideo.py $INPUT
213}
214
215divxstage()
216{
217        $BIN $CMD/divxstage.py $INPUT
218}
219
220novamov()
221{
222        $BIN $CMD/novamov.py $INPUT
223}
224
225xvidstage()
226{
227        $BIN $CMD/xvidstage.py $INPUT
228}
229
230waaw()
231{
232        $BIN $CMD/waaw.py $INPUT
233}
234
235streamango()
236{
237        $BIN $CMD/streamango.py $INPUT
238}
239
240vidlox()
241{
242        $BIN $CMD/vidlox.py $INPUT
243}
244
245aliezold()
246{
247        URL=`$curlbin "$INPUT" | sed 's/source:/\nsource:/' | grep ^source: | cut -d"'" -f2`
248        REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
249        echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
250}
251
252aliez()
253{
254        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
255        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
256        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
257        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
258
259        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
260        if [ -e "$STREAMLIST" ];then
261                rm -f $STREAMLIST > /dev/null 2>&1
262        fi
263
264        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
265        cat $TMP/cache.hoster.$hoster.1 | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
266        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
267        if [ ! -z "$URL" ];then
268                echo "$URL$EXTRA" >> $STREAMLIST
269        fi
270#       URL=""
271        #file:  'http://a3.aliez.me:8080/hls/streama57449/index.m3u8?st=dgw2dOq8tyFkLLBLn2ycXA',
272
273        cat $TMP/cache.hoster.$hoster.1 | sed 's/file:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url2
274        URL=`cat $TMP/cache.hoster.$hoster.url2 | head -n1`
275        if [ ! -z "$URL" ];then
276                echo "$URL$EXTRA" >> $STREAMLIST
277        fi
278#URL=""
279        #"file":                "rtmp%3A%2F%2Fa3.aliez.me%2Flive%2Fstreama57449%3Ftoken%3Dd11304fabb8e64327df8427e1c2fd5d9"
280        cat $TMP/cache.hoster.$hoster.1 | sed 's/"file":/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3
281        URL=`cat $TMP/cache.hoster.$hoster.url3 | head -n1`
282
283        if [ "`echo $URL | grep rtmp | wc -l`" -eq 1 ];then
284                #new swfobject.embedSWF("http://i.aliez.me/swf/playernew.swf?0", "mediaspace", "700", "480", "9.0.115.0", false, flashvars, params);
285                cat $TMP/cache.hoster.$hoster.1 | sed 's/swfobject.embedSWF/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3.rtmp.swfurl
286                SWFURL=`cat $TMP/cache.hoster.$hoster.url3.rtmp.swfurl | head -n1`
287                URL=`echo "$URL" | sed -e 's/%3A/:/g' -e 's!%2F!/!g' -e 's!%3D!=!g' -e 's!%3F!?!g'`
288                EXTRA=" pageUrl=$REFERER"
289                if [ ! -z "$SWFURL" ];then
290                        EXTRA="$EXTRA swfUrl=$SWFURL swfVfy=1 timeout=15 live=1"
291                fi
292                if [ ! -z "$URL" ];then
293                        echo "$URL$EXTRA" >> $STREAMLIST
294                fi
295        fi
296        URL=$STREAMLIST
297
298
299        echo "$URL"
300}
301
302sport7()
303{
304        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
305        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
306
307        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
308        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
309        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
310
311        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
312        if [ -e "$STREAMLIST" ];then
313                rm -f $STREAMLIST > /dev/null 2>&1
314        fi
315
316        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
317        cat $TMP/cache.hoster.$hoster.1 | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
318        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
319        # enable httponly cookie
320        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
321
322        if [ ! -z "$URL" ];then
323                echo "$URL$EXTRA" > $STREAMLIST
324                #echo "$URL$EXTRA"
325                echo "$STREAMLIST"
326        fi
327       
328       
329#       URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2`
330#       REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
331#       sed 's/#HttpOnly_//g' -i /mnt/network/cookies
332#       echo "$URL|Referer=$REFERER&X-f=96.91.79.87&User-Agent=$USERAGENT"
333#       cat $STREAMLIST
334}
335
336sportstream365()
337{
338        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
339        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
340
341        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
342#       REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
343        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
344        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
345
346        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
347        if [ -e "$STREAMLIST" ];then
348                rm -f $STREAMLIST > /dev/null 2>&1
349        fi
350
351        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
352
353        #<input type="hidden" name="game" value="146875046">
354        id=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*name="game" value="([^"]+)".*/\1/p')
355        ts=$(date +%s)
356        URL="http://sportstream365.com/LiveFeed/GetGame?id=$id&partner=24"
357
358        $curlbin "$URL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
359
360
361        #"VI":"1032572"
362        id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI" :"([^"]+)".*/\1/p')
363        if [ -z "$id" ];then
364                id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI":"([^"]+)".*/\1/p')
365        fi
366        #https://github.com/XvBMC/repository.xvbmc/blob/master/Dependencies/script.module.liveresolver/lib/liveresolver/resolvers/sportstream365.py
367        URL=http://93.189.57.254/edge0/xrecord/$id/prog_index.m3u8
368        # enable httponly cookie
369        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
370
371        if [ ! -z "$URL" ];then
372                echo "$URL$EXTRA" > $STREAMLIST
373                #echo "$URL$EXTRA"
374                echo "$STREAMLIST"
375        fi
376}
377
378
379all()
380{
381        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
382        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
383        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
384
385        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
386        if [ -e "$STREAMLIST" ];then
387                rm -f $STREAMLIST > /dev/null 2>&1
388        fi
389
390        rm $TMP/cache.$PARSER.$INPUT.$FROM.1 > /dev/null 2>&1
391
392        $curlbin -o $TMP/cache.$PARSER.$INPUT.$FROM.1 ${1}
393        URL=`zcat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
394        if [ -z "$URL" ];then
395                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
396        fi
397        if [ -z "$URL" ];then
398                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep "text/javascript" | grep -v jQuery | sed -nr 's/.*src="([^"]+)".*/\1/p'`
399        fi
400
401#       echo $URL
402        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.2
403}
404
405
406directstream()
407{
408        echo "$INPUT"
409#       rm -f /tmp/_last_hoster_* > /dev/null 2>&1
410        echo  "$INPUT" > /tmp/.last_hoster_$hoster.log
411}
412
413youtube_dl()
414{
415#       echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dl.log
416#       $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
417#       cat /tmp/youtube_dl.streamlink.log | tail -n1
418        mkdir $TMP > /dev/null 2>&1
419
420        echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dl.log
421
422        $BIN $youtubebin "$INPUT" > $TMP/$TYPE.$hoster.$FILENAME.streamlist
423        echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
424}
425
426youtube_dlbg()
427{
428#       echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_youtube_dlbg.log
429#       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"`
430#       echo "$URL" >> /tmp/.last_hoster_youtube_dlbg.log
431#       echo $URL
432        mkdir $TMP > /dev/null 2>&1
433
434        echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_$TYPE.log
435        $BIN $youtubebinbg "$DEST" "$INPUT" >> /tmp/.last_hoster_$TYPE.log
436#       echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
437}
438
439hlsdl()
440{
441        mkdir $TMP > /dev/null 2>&1
442
443        echo "$HLSBIN $hlsdlbg $DEST $INPUT" > /tmp/.last_hoster_$TYPE.log
444
445        REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+)&.*/\1/p')
446        if [ -z "$REFERER" ];then
447                REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+).*/\1/p')
448        fi
449
450        if [ ! -z "$REFERER" ];then
451                REFERER="Referer: $REFERER"
452        fi
453
454        TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+)&.*/\1/p')
455        if [ -z "$TMPUSERAGENT" ];then
456                TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+).*/\1/p')
457        fi
458        if [ ! -z "$TMPUSERAGENT" ];then
459                USERAGENT=$TMPUSERAGENT
460        fi
461
462        URL=$(echo "$INPUT" | tr '|' '\n' | head -n1)
463
464        echo $HLSBIN "$URL" -v -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
465        $HLSBIN "$URL" -v -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
466#       $HLSBIN "$URL" -v -u "$USERA" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_$TYPE.log
467
468}
469
470
471if [ "$TYPE" == "get" ];then
472        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
473        case $hoster in
474                ecostream) ecostream $INPUT;;
475                giga) giga $INPUT;;
476                nosvideo) nosvideo $INPUT;;
477                allmyvideos) allmyvideos $INPUT;;
478                flashx) flashx $INPUT;;
479                openload|oload) openload $INPUT;;
480                briskfile) briskfile $INPUT;;
481                videoweed|bitvid) videoweed $INPUT;;
482                vodlocker) vodlocker $INPUT;;
483                youwatch|chouhaa|ay8ou8ohth) youwatch $INPUT;;
484                thevideo) thevideo $INPUT;;
485                movshare|wholecloud|vidgg) movshare $INPUT;;
486                vidto) vidto $INPUT;;
487                vidup) vidup $INPUT;;
488                vidzi) vidzi $INPUT;;
489                vivo) vivo $INPUT;;
490                goldesel|movie4k) cloudflare $INPUT;;
491                streamcloud1) streamcloud $INPUT;;     
492                nowvideo) nowvideo $INPUT;;
493                divxstage|cloudtime) divxstage $INPUT;;
494                novamov|auroravid) novamov $INPUT;;
495                xvidstage) xvidstage $INPUT;;
496                waaw|netu|hqq) waaw $INPUT;;
497                streamango|streamcherry) streamango $INPUT;;
498                vidlox) vidlox $INPUT;;
499                redirector|googlevideo|vodcloud|google) directstream "$INPUT";;
500                aliez) aliez $INPUT;;
501                sport7) sport7 $INPUT;;
502                sportstream365) sportstream365 $INPUT;;
503                *) all $INPUT;;
504
505        esac
506fi
507
508if [ "$TYPE" == "youtube_dl" ];then
509        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
510        case $hoster in
511                *) youtube_dl $INPUT;;
512        esac
513fi
514
515if [ "$TYPE" == "youtube_dlbg" ];then
516        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
517        case $hoster in
518                *) youtube_dlbg $DEST $INPUT;;
519        esac
520fi
521
522if [ "$TYPE" == "hlsdl" ];then
523        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
524        case $hoster in
525                *) hlsdl $INPUT;;
526        esac
527fi
Note: See TracBrowser for help on using the repository browser.