source: titan/mediathek/localhoster/hoster.sh

Last change on this file was 46748, checked in by aafsvn, 3 weeks ago

fix voe hoster

  • Property svn:executable set to *
File size: 51.5 KB
Line 
1#!/bin/bash
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 's/User-Agent.*//' | sed -e 's/|//g' | 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
20if [ -e /etc/.distro ];then
21    DISTRO=$(cat /etc/.distro)
22else
23    DISTRO=6.3
24fi
25ARCH=`cat /etc/.arch`
26BOX=`cat /etc/model`
27TMP=/tmp/localcache
28CMD=/tmp/localhoster
29BIN="$CMD"/bin/python."$ARCH"
30HLSBIN="$CMD"/bin/hlsdl."$ARCH"
31CURLBIN="$CMD"/bin/curl."$ARCH"
32DUKBIN="$CMD"/bin/duk."$ARCH"
33
34if [ -e /etc/.ddtbuild ] && [ -e "$CMD"/bin/busybox."$ARCH" ]; then
35    mv -f "$CMD"/bin/busybox."$ARCH" "$CMD"/bin/busybox
36fi
37
38if [ -e "$CMD"/bin/busybox ];then BUSYBOXBIN="$CMD"/bin/busybox; fi
39
40if [ "$ARCH" == "i386" ]; then
41BIN=/usr/bin/python
42HLSBIN=/usr/bin/hlsdl
43CURLBIN=/usr/bin/curl
44DUKBIN=/usr/bin/duk
45fi
46
47if [ ! -e "$CURLBIN" ];then CURLBIN=curl; fi
48#USERAGENT='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
49AUTH='aUtzhFRTzuDFa:JNHZbghnjuz'
50API="eyJkYXRhIjoie1widGltZVwiOjI2MDk0NDA0MDEwMjksXCJ2YWxpZFVudGlsXCI6MjYwOTQ0MTAwMTAyOSxcImlwc1wiOltcIjE1NC45Mi4wLjIzXCJdLFwicnVsZXNldFwiOlwiZ3Vlc3RcIixcInZlcmlmaWVkXCI6dHJ1ZSxcImVycm9yXCI6bnVsbCxcImFwcFwiOntcInBsYXRmb3JtXCI6XCJ2YXZvb1wiLFwidmVyc2lvblwiOlwiMi42XCIsXCJzZXJpdmNlXCI6XCIxLjIuMjZcIixcIm9rXCI6dHJ1ZX0sXCJ1dWlkXCI6XCI1T2MyVkR3UmdyMjlSMmVXZTh1Zi9ZUitDOHZaOXAvdVM5eCtSY2cwS1FvPVwifSIsInNpZ25hdHVyZSI6ImFTdGJpT2U0V0gyTzBrZm9TN0VTV2JXTFk3RS9vVTN1OWJNeml2bDdKWkc1eW1HRElmam92blVlQUFpbVdzc3NHUDNOeHg5VDAvL0hnSUlPV21xMkpiUXJ4NFBlYVdQMkM5U1ZNTFA5cjMzYnNURXEvMXZWeVZ3RnBBMm00bTdrNHVpZkpablk4enBqNnNWNGdHUDBGd0NBbCszRnkrSm9zWmhGU0FXYkNUYz0ifQ=="
51USERAGENT='Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
52USERAGENT2='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
53CURTIME=`date +%s`
54
55debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
56PROXY=""
57proxy=`cat /mnt/config/titan.cfg | grep tithek_proxy | cut -d"=" -f2`
58if [ ! -z "$proxy" ];then PROXY="--proxy $proxy"; fi
59curlbin="$CURLBIN $PROXY -k -s -L --connect-timeout 5 --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
60curlbin2="$CURLBIN $PROXY -k -s --connect-timeout 5 --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
61curlbin3="$CURLBIN -k --connect-timeout 5"
62
63if [ -e /etc/.oebuild ];then
64        if [ "$DISTRO" == "6.3" ] || [ "$DISTRO" == "6.4" ] || [ "$DISTRO" == "7.0" ];then
65                youtubebin="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
66                youtubebin2="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
67                youtubebinbg="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors --output"
68                youtubebinbg2="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors --output"
69                youtubebinbghls="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --hls-use-mpegts --format mp4 --restrict-filenames --ignore-errors --output"
70        else
71                youtubebin="/usr/bin/yt-dlp --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
72                youtubebin2="/usr/bin/yt-dlp --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
73                youtubebinbg="/usr/bin/yt-dlp --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors"
74                youtubebinbg2="/usr/bin/yt-dlp --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --restrict-filenames --ignore-errors"
75                youtubebinbghls="/usr/bin/yt-dlp --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --hls-use-mpegts --format mp4 --restrict-filenames --ignore-errors"
76        fi
77else
78        youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
79        youtubebinbg="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors --output"
80        youtubebinbghls="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --hls-use-mpegts --format mp4 --restrict-filenames --ignore-errors --output"
81fi
82
83hlsdlbg="$HLSBIN -u $USERAGENT -o"
84
85if [ -e /mnt/network/cookies ];then sed 's/#HttpOnly_//g' -i /mnt/network/cookies; fi
86
87if [ -e /etc/.oebuild ] && ([ "$DISTRO" == "6.3" ] || [ "$DISTRO" == "6.4" ]);then
88    BIN=python
89else
90    export PYTHONHOME=/tmp/localhoster
91    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
92fi
93
94if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
95if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi
96if [ "$debuglevel" == "99" ]; then curlbin3="$curlbin3 -v"; fi
97if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi
98
99wgetbin="wget -q -T2"
100
101if [ "$ARCH" == "i386" ]; then
102        if [ -d "/tmp/localhoster/lib/python2.7" ];then
103                mv -f /tmp/localhoster/lib/python2.7 /tmp/localhoster/lib/python2.7_old
104        fi
105        ln -fs /usr/lib/python2.7 /tmp/localhoster/lib/python2.7
106fi
107
108if [ ! -e "/tmp/localhoster/lib/python2.7/lib-dynload" ] && [ -e /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" ];then
109#       ln -fs /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
110        time mv -f /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
111        time rm -rf /tmp/localhoster/lib/python2.7/lib-dynload.*
112fi
113if [ ! -e "/tmp/localhoster/lib/libpython2.7.so.1.0" ] && [ -e /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" ];then
114#       ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
115        time mv -f /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
116        time rm -f /tmp/localhoster/lib/libpython2.7.so.1.0.*
117fi
118if [ ! -e "/tmp/localhoster/lib/libcrypto.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" ];then
119#       ln -fs /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
120        time mv -f /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
121        time rm -f /tmp/localhoster/lib/libcrypto.so.1.0.0.*
122fi
123if [ ! -e "/tmp/localhoster/lib/libssl.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" ];then
124#       ln -fs /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/llibssl.so.1.0.0
125        time mv -f /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/libssl.so.1.0.0
126        time rm -f /tmp/localhoster/lib/libssl.so.1.0.0.*
127fi
128
129if [ -e "$TMP/hoster.tar" ]; then time rm -f $TMP/hoster.tar; fi
130if [ -e "$TMP/parser.tar" ]; then time rm -f $TMP/parser.tar; fi
131
132if [ "$ARCH" == "sh4" ];then #&& [ "$BOX" != "ufs912" ]; then
133        if [ -e "$CMD/lib/python2.7/lib-dynload.mipsel" ]; then time rm -rf $CMD/lib/python2.7/lib-dynload.mipsel; fi
134        if [ -e "$CMD/lib/python2.7/lib-dynload.arm" ]; then time rm -rf $CMD/lib/python2.7/lib-dynload.arm; fi
135
136        if [ -e "$CMD/lib/libpython2.7.so.1.0.mipsel" ]; then time rm -rf $CMD/lib/libpython2.7.so.1.0.mipsel; fi
137        if [ -e "$CMD/lib/libpython2.7.so.1.0.arm" ]; then time rm -rf $CMD/lib/libpython2.7.so.1.0.arm; fi
138
139        if [ -e "$CMD/lib/libssl.so.1.0.0.mipsel" ]; then time rm -rf $CMD/lib/libssl.so.1.0.0.mipsel; fi
140        if [ -e "$CMD/lib/libssl.so.1.0.0.arm" ]; then time rm -rf $CMD/lib/libssl.so.1.0.0.arm; fi
141
142        if [ -e "$CMD/lib/libcrypto.so.1.0.0.mipsel" ]; then time rm -rf $CMD/lib/libcrypto.so.1.0.0.mipsel; fi
143        if [ -e "$CMD/lib/libcrypto.so.1.0.0.arm" ]; then time rm -rf $CMD/lib/libcrypto.so.1.0.0.arm; fi
144fi
145
146hostercheck=`echo "$INPUT" | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d"/" -f1 | tail -n1 | tr '.' '\n' | wc -l`
147hosterline=`expr $hostercheck - 1`
148if [ "$hosterline" == "0" ];then hosterline=1; fi
149hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d"/" -f1 | tail -n1 | cut -d"." -f$hosterline`
150
151ecostream()
152{
153        hosterurl=http://www.ecostream.tv
154        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`"
155        streampage=`$curlbin $hosterurl/js/ecoss.js | grep "$.post('" | grep videos | cut -d"'" -f2`
156        streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $INPUT $hosterurl/$streampage | cut -d'"' -f6`
157        if [ "`echo $streamurl | grep DOCTYPE | wc -l`" -eq 0 ] && [ "$streamurl" != "$hosterurl" ];then
158                echo $streamurl
159        fi
160}
161
162giga()
163{
164        streampage=`$curlbin $INPUT | grep "<iframe src=" | cut -d'"' -f2 | head -n1`
165        streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 1080p`
166        if [ -z "$streamurl" ];then
167                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 720p`
168        fi
169        if [ -z "$streamurl" ];then
170                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 480p`
171        fi
172        if [ -z "$streamurl" ];then
173                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 360p`
174        fi
175        if [ -z "$streamurl" ];then
176                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 240p`
177        fi
178        if [ -z "$streamurl" ];then
179                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 180p`
180        fi
181        echo $streamurl
182}
183
184vidup()
185{
186        $BIN $CMD/vidup.py $INPUT
187}
188
189nosvideo()
190{
191        $BIN $CMD/nosvideo.py $INPUT
192}
193
194allmyvideos()
195{
196        $BIN $CMD/allmyvideos.py $INPUT
197}
198
199flashx()
200{
201#       $BIN $CMD/flashx.py $INPUT
202#exit
203        $BIN $CMD/flashx.py $INPUT > $TMP/cache.$FILENAME.2
204        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
205        cat $TMP/cache.$FILENAME.2  > $STREAMLIST
206#       cat $TMP/cache.$FILENAME.2 | grep "video/mp4" | sed -nr "s/.*src:\\\'([^']+)\\\'.*/\1/p" > $STREAMLIST
207        echo $STREAMLIST
208}
209
210vshare()
211{
212#       $BIN $CMD/flashx.py $INPUT
213#exit
214        $BIN $CMD/vshare.py $INPUT > $TMP/cache.$FILENAME.2
215        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
216        cat $TMP/cache.$FILENAME.2  > $STREAMLIST
217#       cat $TMP/cache.$FILENAME.2 | grep "video/mp4" | sed -nr "s/.*src:\\\'([^']+)\\\'.*/\1/p" > $STREAMLIST
218        echo $STREAMLIST
219}
220
221openload()
222{
223        $BIN $CMD/openload.py $INPUT
224}
225
226briskfile()
227{
228        $BIN $CMD/briskfile.py $INPUT
229}
230
231vodlockerold()
232{
233        $BIN $CMD/vodlocker.py $INPUT
234}
235
236videoweed()
237{
238        $BIN $CMD/videoweed.py $INPUT
239}
240
241vodzi()
242{
243        $BIN $CMD/vodzi.py $INPUT
244}
245
246youwatch()
247{
248        $BIN $CMD/youwatch.py $INPUT
249}
250
251thevideo()
252{
253        $BIN $CMD/thevideo.py $INPUT
254}
255
256movshare()
257{
258        $BIN $CMD/movshare.py $INPUT
259}
260
261streamcloud()
262{
263        $BIN $CMD/streamcloud.py $INPUT
264}
265
266vidzi()
267{
268        $BIN $CMD/vidzi.py $INPUT
269}
270
271vivo()
272{
273        $BIN $CMD/vivo.py $INPUT
274}
275
276vidto()
277{
278        $BIN $CMD/vidto.py $INPUT
279}
280
281goldesel()
282{
283        $BIN $CMD/goldesel.py $INPUT
284}
285
286cloudflare()
287{
288        mkdir $TMP > /dev/null 2>&1
289        rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1
290        $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1
291        if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
292                ERROR=`cat $TMP/cache.hoster.$hoster.1 | grep urllib2.HTTPError:`
293                echo "errormsg=$ERROR"
294        else
295                cat $TMP/cache.hoster.$hoster.1
296        fi
297}
298
299kinox()
300{
301        mkdir $TMP > /dev/null 2>&1
302        rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1
303
304        if [ "$TYPE" == "get" ];then
305                $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1
306                if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
307                        ERROR=`echo $INPUT | grep urllib2.HTTPError:`
308                        echo "errormsg=$ERROR"
309                else
310                        cat $TMP/cache.hoster.$hoster.1
311                fi
312        elif [ "$TYPE" == "hoster" ];then
313
314                if [ `echo $INPUT | grep "/aGET/" | wc -l` -eq 1 ];then
315                        URL=`$BIN $CMD/cloudflare.py $INPUT | tr -d '\\' | sed -nr 's/.*<iframe src="([^"]+)".*/\1/p'`
316                        if [ -z "$URL" ];then
317                                URL=`$BIN $CMD/cloudflare.py $INPUT | tr -d '\\' | sed -nr 's/.*<a href="([^"]+)".*/\1/p'`
318                        fi
319                        if [ `echo $URL | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
320                                ERROR=`echo $INPUT | grep urllib2.HTTPError:`
321                                echo "errormsg=$ERROR"
322                        else
323                                if [ `echo $URL | grep ^"//" | wc -l` -eq 1 ];then
324                                        echo "http:$URL"
325                                else
326                                        echo "$URL"
327                                fi
328                        fi
329                else
330                        $BIN $CMD/cloudflare.py $INPUT         
331                fi     
332        fi
333}
334
335nowvideo()
336{
337        $BIN $CMD/nowvideo.py $INPUT
338}
339
340divxstage()
341{
342        $BIN $CMD/divxstage.py $INPUT
343}
344
345novamov()
346{
347        $BIN $CMD/novamov.py $INPUT
348}
349
350xvidstage()
351{
352        $BIN $CMD/xvidstage.py $INPUT
353}
354
355waaw()
356{
357        $BIN $CMD/waaw.py $INPUT
358}
359
360streamango()
361{
362        $BIN $CMD/streamango.py $INPUT
363}
364
365vidlox()
366{
367        $BIN $CMD/vidlox.py $INPUT
368}
369
370vidcloud()
371{
372        $BIN $CMD/vidcloud.py $INPUT
373}
374
375streamz()
376{
377        $BIN $CMD/streamz.py $INPUT
378}
379
380mixdrop()
381{
382        $BIN $CMD/mixdrop.py $INPUT
383}
384
385streamtape()
386{
387        $BIN $CMD/streamtape.py $INPUT
388}
389
390upstream()
391{
392        $BIN $CMD/upstream.py $INPUT
393}
394
395evoload()
396{
397        $BIN $CMD/evoload.py $INPUT
398}
399
400abcvideo()
401{
402        $BIN $CMD/abcvideo.py $INPUT
403}
404
405doodstream()
406{
407        $BIN $CMD/doodstream.py $INPUT
408}
409
410voesx()
411{
412        $BIN $CMD/voesx.py $INPUT
413}
414
415streamcrypt()
416{
417        hoster=$(echo $INPUT | sed -nr 's/.*:\/\/.*\/([^\/]+)\/.*/\1/p')
418        hostercheck=$(echo $hoster | tr '.' '\n' | wc -l)
419        hosterline=$(expr $hostercheck - 1)
420        if [ "$hosterline" == "0" ];then hosterline=1; fi
421        echo $hoster | tr 'A-Z' 'a-z' | cut -d"." -f$hosterline
422        #INPUT=$(echo $INPUT | sed "s!streamcrypt.net/!!")
423}
424
425voe()
426{
427        mkdir $TMP > /dev/null 2>&1
428
429        rm -f $TMP/$TYPE.hoster.$hoster.$FILENAME.* > /dev/null 2>&1
430        rm -f $TMP/cache.$TYPE.hoster.$hoster.* > /dev/null 2>&1
431
432        STREAMLIST="$TMP/$TYPE.hoster.$hoster.$FILENAME.streamlist"
433        if [ -e "$STREAMLIST" ];then
434                rm -f $STREAMLIST > /dev/null 2>&1
435        fi
436       
437        if [ ! -z "$PROXY" ];then
438                curlbin=$(echo $curlbin | sed "s!$PROXY!!")
439        fi
440
441        $curlbin "$INPUT" -o $TMP/cache.$TYPE.hoster.$hoster.$FILENAME.1
442        cat $TMP/cache.$TYPE.hoster.$hoster.$FILENAME.1 | sed -nr "s/.*'hls'.*'([^']+)'.*/\1/p" >$TMP/cache.$TYPE.hoster.$hoster.$FILENAME.2
443        cat $TMP/cache.$TYPE.hoster.$hoster.$FILENAME.2 | tr -d '\n' | tr -d '\r' >> $STREAMLIST
444        echo "" >> $STREAMLIST
445               
446        cat $TMP/cache.$TYPE.hoster.$hoster.$FILENAME.1 | sed -nr "s/.*'mp4'.*'([^']+)'.*/\1/p" >$TMP/cache.$TYPE.hoster.$hoster.$FILENAME.3
447        cat $TMP/cache.$TYPE.hoster.$hoster.$FILENAME.3 | tr -d '\n' | tr -d '\r' >> $STREAMLIST
448        echo "" >> $STREAMLIST
449
450        if [ "$ARCH" == "sh4" ];then
451                sed 's!https://!http://!g' -i $STREAMLIST
452        fi
453       
454#       REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
455#       echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
456#       echo "$URL"
457
458        URL=$STREAMLIST
459        echo "$URL"
460       
461}
462
463vodlocker()
464{
465        mkdir $TMP > /dev/null 2>&1
466        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
467
468        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
469        if [ -e "$STREAMLIST" ];then
470                rm -f $STREAMLIST > /dev/null 2>&1
471        fi
472
473        PAGE=`echo $INPUT | cut -d"|" -f1`
474        REFERER=`echo $INPUT | cut -d"|" -f2`
475
476        $curlbin "$PAGE" -o $TMP/cache.$FILENAME.1
477        cat $TMP/cache.$FILENAME.1 | sed 's/<source src/\n<source src/g' | sed -nr "s/.*src='([^']+)'.*/\1/p" | grep getfile >$TMP/cache.$FILENAME.2
478
479        while read -u 3 ROUND; do
480                NEWPAGE="$ROUND"
481
482                $curlbin2 -v "$NEWPAGE" --dump-header $TMP/cache.hoster.$hoster.1
483                cat $TMP/cache.hoster.$hoster.1 | grep ^Location: | cut -d" " -f2 >$TMP/cache.hoster.$hoster.1.url1
484                URL=`cat $TMP/cache.hoster.$hoster.1.url1`"|$REFERER"
485
486                CURTIME=`date +%s`
487                if [ `cat /mnt/network/cookies | grep .movie4k.ag | grep approve | wc -l` -eq 0 ];then
488                        echo ".movie4k.ag     TRUE    /       FALSE   $CURTIME      approve         1" >> /mnt/network/cookies
489                fi
490
491                if [ ! -z "$URL" ];then
492                        echo "$URL" | tr -d '\n' | tr -d '\r' >> $STREAMLIST
493                        echo "" >> $STREAMLIST
494
495                        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
496                        sed 's/.movie2k.ag/.movie4k.ag/g' -i /mnt/network/cookies
497                fi
498
499
500        done 3<$TMP/cache.$FILENAME.2
501        rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
502
503        URL=$STREAMLIST
504
505        echo "$URL"
506}
507
508aliezold()
509{
510        URL=`$curlbin "$INPUT" | sed 's/source:/\nsource:/' | grep ^source: | cut -d"'" -f2`
511        REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
512        echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
513}
514
515aliez()
516{
517        mkdir $TMP > /dev/null 2>&1
518        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
519        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
520        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
521        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
522
523        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
524        if [ -e "$STREAMLIST" ];then
525                rm -f $STREAMLIST > /dev/null 2>&1
526        fi
527
528        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
529        cat $TMP/cache.hoster.$hoster.1 | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
530        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
531        if [ ! -z "$URL" ];then
532                echo "$URL$EXTRA" >> $STREAMLIST
533        fi
534#       URL=""
535        #file:  'http://a3.aliez.me:8080/hls/streama57449/index.m3u8?st=dgw2dOq8tyFkLLBLn2ycXA',
536
537        cat $TMP/cache.hoster.$hoster.1 | sed 's/file:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url2
538        URL=`cat $TMP/cache.hoster.$hoster.url2 | head -n1`
539        if [ ! -z "$URL" ];then
540                echo "$URL$EXTRA" >> $STREAMLIST
541        fi
542#URL=""
543        #"file":                "rtmp%3A%2F%2Fa3.aliez.me%2Flive%2Fstreama57449%3Ftoken%3Dd11304fabb8e64327df8427e1c2fd5d9"
544        cat $TMP/cache.hoster.$hoster.1 | sed 's/"file":/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3
545        URL=`cat $TMP/cache.hoster.$hoster.url3 | head -n1`
546
547        if [ "`echo $URL | grep rtmp | wc -l`" -eq 1 ];then
548                #new swfobject.embedSWF("http://i.aliez.me/swf/playernew.swf?0", "mediaspace", "700", "480", "9.0.115.0", false, flashvars, params);
549                cat $TMP/cache.hoster.$hoster.1 | sed 's/swfobject.embedSWF/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.hoster.$hoster.url3.rtmp.swfurl
550                SWFURL=`cat $TMP/cache.hoster.$hoster.url3.rtmp.swfurl | head -n1`
551                URL=`echo "$URL" | sed -e 's/%3A/:/g' -e 's!%2F!/!g' -e 's!%3D!=!g' -e 's!%3F!?!g'`
552                EXTRA=" pageUrl=$REFERER"
553                if [ ! -z "$SWFURL" ];then
554                        EXTRA="$EXTRA swfUrl=$SWFURL swfVfy=1 timeout=15 live=1"
555                fi
556                if [ ! -z "$URL" ];then
557                        echo "$URL$EXTRA" >> $STREAMLIST
558                fi
559        fi
560        URL=$STREAMLIST
561
562
563        echo "$URL"
564}
565
566sport7()
567{
568        mkdir $TMP > /dev/null 2>&1
569
570        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
571        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
572
573        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
574        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
575        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
576
577        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
578        if [ -e "$STREAMLIST" ];then
579                rm -f $STREAMLIST > /dev/null 2>&1
580        fi
581
582        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
583        cat $TMP/cache.hoster.$hoster.1 | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
584        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
585        # enable httponly cookie
586        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
587
588        if [ ! -z "$URL" ];then
589                echo "$URL$EXTRA" > $STREAMLIST
590                #echo "$URL$EXTRA"
591                echo "$STREAMLIST"
592        fi
593       
594       
595#       URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2`
596#       REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
597#       sed 's/#HttpOnly_//g' -i /mnt/network/cookies
598#       echo "$URL|Referer=$REFERER&X-f=96.91.79.87&User-Agent=$USERAGENT"
599#       cat $STREAMLIST
600}
601
602sportstream365()
603{
604        mkdir $TMP > /dev/null 2>&1
605
606        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
607        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
608
609        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
610#       REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
611        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
612        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
613
614        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
615        if [ -e "$STREAMLIST" ];then
616                rm -f $STREAMLIST > /dev/null 2>&1
617        fi
618
619        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
620
621        #<input type="hidden" name="game" value="146875046">
622        id=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*name="game" value="([^"]+)".*/\1/p')
623        ts=$(date +%s)
624        URL="http://sportstream365.com/LiveFeed/GetGame?id=$id&partner=24"
625
626        $curlbin "$URL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
627
628
629        #"VI":"1032572"
630        id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI" :"([^"]+)".*/\1/p')
631        if [ -z "$id" ];then
632                id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI":"([^"]+)".*/\1/p')
633        fi
634        #https://github.com/XvBMC/repository.xvbmc/blob/master/Dependencies/script.module.liveresolver/lib/liveresolver/resolvers/sportstream365.py
635        URL=http://93.189.57.254/edge0/xrecord/$id/prog_index.m3u8
636        # enable httponly cookie
637        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
638
639        if [ ! -z "$URL" ];then
640                echo "$URL$EXTRA" > $STREAMLIST
641                #echo "$URL$EXTRA"
642                echo "$STREAMLIST"
643        fi
644}
645
646sportsonline()
647{
648        mkdir $TMP > /dev/null 2>&1
649
650        #http://sportsonline.pw/livetv/pt-sporttv1.html
651        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
652        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
653        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
654
655        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
656        if [ -e "$STREAMLIST" ];then
657                rm -f $STREAMLIST > /dev/null 2>&1
658        fi
659
660        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
661
662        #<iframe src="http://widestream.io/embedClappr.php?live=13593" width="100%" height="100%" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>
663        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*iframe src="([^"]+)".*/\1/p')
664
665        $curlbin "$TMPURL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
666
667        #source: "http://ultra.widestream.io:8081/wideedge/1022qvk/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvOS8yMDE3IDEyOjMyOjQzIEFNJmhhc2hfdmFsdWU9ZW9WeThRL0JmaVA2dnFUQm15Ukkvdz09JnZhbGlkbWludXRlcz0yMA==",
668        TMPURL=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*source: "([^"]+)".*/\1/p')
669
670        if [ ! -z "$TMPURL" ];then
671                echo "$TMPURL$EXTRA" > $STREAMLIST
672                #echo "$URL$EXTRA"
673                echo "$STREAMLIST"
674        fi
675}
676
677assia()
678{
679        mkdir $TMP > /dev/null 2>&1
680
681        #http://assia.tv/live/gol-tv/?lang=ru
682        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
683        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
684        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
685
686        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
687        if [ -e "$STREAMLIST" ];then
688                rm -f $STREAMLIST > /dev/null 2>&1
689        fi
690
691        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
692
693        #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);}});
694        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*file:"([^"]+)".*/\1/p' | tail -n1)
695
696        if [ ! -z "$TMPURL" ];then
697                echo "$TMPURL$EXTRA" > $STREAMLIST
698                #echo "$URL$EXTRA"
699                #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
700
701                echo "$STREAMLIST"
702        fi
703}
704
705cricfree()
706{
707        mkdir $TMP > /dev/null 2>&1
708
709        #http://cricfree.sc/update/bt2.php
710        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
711        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
712        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
713
714        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
715        if [ -e "$STREAMLIST" ];then
716                rm -f $STREAMLIST > /dev/null 2>&1
717        fi
718
719        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
720
721        #<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>
722        TMPURL1=$(cat $TMP/cache.hoster.$hoster.1 | grep "<iframe" | grep cricfree | sed -nr 's/.*src="([^"]+)".*/\1/p')
723
724#       $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
725        $curlbin "$TMPURL1" -o $TMP/cache.hoster.$hoster.2
726
727        #<script type='text/javascript'>id='bt2i'; width='620'; height='490';</script><script type='text/javascript' src='http://hi.notkodi.science/streamgame.js'></script>
728        TMPURL2=$(cat $TMP/cache.hoster.$hoster.2 | grep "id=" | sed -nr "s/.*src='([^']+)'.*/\1/p")
729        id=$(cat $TMP/cache.hoster.$hoster.2 | grep "id=" | sed -nr "s/.*id='([^']+)'.*/\1/p")
730
731        $curlbin "$TMPURL2" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.3
732
733        #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='
734        TMPURL3=$(cat $TMP/cache.hoster.$hoster.3 | grep document.write | sed -nr 's/.*src="([^"]+)".*/\1/p')
735
736        #var stretching = 'uniform';
737        stretching=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var stretching = '([^']+)'.*/\1/p")
738
739        #var c = '0';
740        c=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var c = '([^']+)'.*/\1/p")
741
742        #var p = '0';
743        p=$(cat $TMP/cache.hoster.$hoster.3 | sed -nr "s/.*var p = '([^']+)'.*/\1/p")
744
745        #http://veremos.date/all.php?id=bt2i&p=0&c=0&stretching=uniform
746        TMPURL3=$(echo $TMPURL3 | sed -e "s/'+id+'/$id/" -e "s/'+p+'/$p/" -e "s/'+c+'/$c/" -e "s/'+stretching+'/$stretching/")
747
748        #$curlbin http://veremos.date/all.php?id=bt2i&p=0&c=0&stretching=uniform" --referer "http://cricfree.sc/update/bt2.php"
749        $curlbin "$TMPURL3" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.4
750
751        #<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>
752        TMPURL4=$(cat $TMP/cache.hoster.$hoster.4 | grep "<iframe" | sed -nr 's/.*src="([^"]+)".*/\1/p')
753
754        #$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"
755        $curlbin "$TMPURL4" --referer "$TMPURL3" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.5
756
757        #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);
758        TMPURL=$(cat $TMP/cache.hoster.$hoster.5 | grep 'return(\["' | sed -e 's/","//g' -e 's/\\//g'| cut -d'"' -f2)
759
760        #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);
761        #uaagraneeblAStrsyrrUi
762        searchtoken1=$(cat $TMP/cache.hoster.$hoster.5 | grep 'return(\["'| sed -e 's/","//g' -e 's/\\//g' | awk '{ print $3 }' | cut -d"." -f1)
763        #var uaagraneeblAStrsyrrUi = ["3Rp","UJ5","ZoY","c2V","J","jgy","X3Z","9MT","XNo","ydm","ZEp","VyX","0OC","VlP","MDI","bWU","UxM","hbH"];
764        TOKEN1=$(cat $TMP/cache.hoster.$hoster.5 | grep "var $searchtoken1" | sed -e 's/","//g' -e 's/\\//g' | cut -d'"' -f2)
765
766        #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);
767        #rBkacSifaguntesith
768        searchtoken2=$(cat $TMP/cache.hoster.$hoster.5 | sed -nr 's/.*document.getElementById\("([^"]+)".*/\1/p')
769        #<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>
770        #MGZVL2wvanFha3ROWlVFQlE9PSZ2YWxpZG1pbnV0ZXM9MTAw
771        TOKEN2=$(cat $TMP/cache.hoster.$hoster.5 | sed "s/id=$searchtoken2/\nfoundid=/" | grep ^"foundid=" | cut -d'>' -f2 | cut -d'<' -f1)
772
773        if [ ! -z "$TMPURL" ];then
774#               echo "$TMPURL$token1$token2$EXTRA" > $STREAMLIST
775                #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
776
777                echo "$TMPURL$TOKEN1$TOKEN2" > $STREAMLIST
778
779                #echo "$URL$EXTRA"
780                echo "$STREAMLIST"
781        fi
782}
783
784#pl.init('http://78.142.19.151:8080/hls/streama113384/index.m3u8?st=dxSilE8xi3eR1Hk5_SLv1w');
785#apl3
786apl3()
787{
788        mkdir $TMP > /dev/null 2>&1
789
790        #http://assia.tv/live/gol-tv/?lang=ru
791        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
792        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
793        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
794
795        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
796        if [ -e "$STREAMLIST" ];then
797                rm -f $STREAMLIST > /dev/null 2>&1
798        fi
799
800        $curlbin -A "$USERAGENT2" --referer "$REFERER" "$INPUT" -o $TMP/cache.hoster.$hoster.1
801        #pl.init('http://87.120.36.57:8080/hls/streama113535/index.m3u8?st=VsL7dEPX4fBHn3tcJmmcKw');
802        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | grep pl.init | cut -d"'" -f2)
803        # enable httponly cookie
804        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
805
806    if [ `echo $TMPURL | grep ^// | wc -l` -eq 1 ];then
807        TMPURL="http:$TMPURL"
808    fi
809
810        if [ ! -z "$TMPURL" ];then
811                #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
812                echo "$TMPURL$TOKEN$EXTRA" > $STREAMLIST
813                echo "$STREAMLIST"
814        fi
815}
816
817broadcast()
818{
819        mkdir $TMP > /dev/null 2>&1
820
821        #http://assia.tv/live/gol-tv/?lang=ru
822        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
823        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
824        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
825
826        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
827        if [ -e "$STREAMLIST" ];then
828                rm -f $STREAMLIST > /dev/null 2>&1
829        fi
830
831        #$curlbin --referer "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0" "http://bro.adca.st/token2.php"
832        $curlbin "http://bro.adca.st/token2.php" --referer "$INPUT" -o $TMP/cache.hoster.$hoster.1
833
834        #{"rumba":"ruYg748QTLGfAn2iZo3bpw&expires=1512880893"}
835        TOKEN=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*"rumba":"([^"]+)".*/\1/p' | tail -n1)
836
837        #$curlbin --referer "http://bonstreams.net" "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0"
838        $curlbin "$INPUT" --referer "http://bonstreams.net" -o $TMP/cache.hoster.$hoster.2
839
840    #trap = "aHR0cDovL3RpZXIyLnBva2VyY29hbGl0aW9uLnB3L28xMC8xNzczMy5tM3U4P3NmPU5UazVOR0UzWXpSaE16bGpOUT09JnRva2VuPQ=
841        TRAP=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*trap = "([^"]+)".*/\1/p' | tail -n1)
842
843        echo "$TRAP" > $TMP/cache.hoster.$hoster.base64
844        TMPURL=$(base64 -d $TMP/cache.hoster.$hoster.base64)
845
846        # enable httponly cookie
847        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
848
849        if [ ! -z "$TMPURL" ];then
850                #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
851                echo "$TMPURL$TOKEN$EXTRA" > $STREAMLIST
852                echo "$STREAMLIST"
853        fi
854}
855
856popofthestream()
857{
858        mkdir $TMP > /dev/null 2>&1
859
860    rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
861
862    #INPUT=http://www.popofthestream.com/embed/aliez-skymain.html
863    HOST=$(echo $INPUT | sed -nr 's!.*://.*/([^/]+).*!\1!p')
864    PFAD=$($curlbin $INPUT | sed -nr 's/.*src=".([^.]+).*/\1/p')
865    #echo HOST $HOST
866    #echo PFAD $PFAD
867    #echo INPUT $INPUT
868    $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
869    HOST=$(echo $INPUT | sed -nr 's!(.*://.*/.*)/.*!\1!p')
870    #<iframe allowFullScreen frameborder=0 marginheight=0 marginwidth=0 scrolling="no" src="./aliez/bein1fr.html" width="728" height="450">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
871    #<iframe allowFullScreen frameborder=0 marginheight=0 marginwidth=0 scrolling="no" src="./aliez/skymain.html" width="728" height="450">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
872    PFAD=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's!.*src=".(.*)" width=.*!\1!p')
873    #echo HOST2 $HOST
874    #echo PFAD2 $PFAD
875    $curlbin "$HOST$PFAD" -o $TMP/cache.hoster.$hoster.2
876    HOST=$(echo $HOST$PFAD | sed -nr 's!(.*://.*/.*/.*)/.*!\1!p')
877    #let fetchResult = await fetch("./skymain.json?" + Date.parse(new Date().toString()));
878    PFAD=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's!.*fetch\(\".(.*)\?.*!\1!p')
879    #echo HOST3 $HOST
880    #echo PFAD3 $PFAD
881    $curlbin "$HOST/$PFAD" -o $TMP/cache.hoster.$hoster.3
882    #{"id":"174476"}
883    ID=$(cat $TMP/cache.hoster.$hoster.3 | cut -d'"' -f4)
884    #document.getElementById("player").innerHTML = '<iframe allowFullScreen frameborder=0 marginheight=0 marginwidth=0 scrolling="no" src="http://emb.apl111.me/player/live.php?id=' + chInfos.id + '&w=728&h=450" width="728" height="450">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>';
885    URL=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*src="([^"]+)".*/\1/p' | grep "?id=" | sed "s/'.*'/$ID/")
886
887    if [ `echo $URL | grep ^emb.apl | wc -l` -eq 1 ];then
888        /tmp/localhoster/hoster.sh get "http://$URL"
889    elif [ `echo $URL | grep ^// | wc -l` -eq 1 ];then
890        /tmp/localhoster/hoster.sh get "http:$URL"
891    else
892        /tmp/localhoster/hoster.sh get $URL
893    fi
894}
895
896all()
897{
898        mkdir $TMP > /dev/null 2>&1
899
900        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
901        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
902        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
903
904        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
905        if [ -e "$STREAMLIST" ];then
906                rm -f $STREAMLIST > /dev/null 2>&1
907        fi
908
909        rm $TMP/cache.$PARSER.$INPUT.$FROM.1 > /dev/null 2>&1
910
911        $curlbin -o $TMP/cache.$PARSER.$INPUT.$FROM.1 ${1}
912        URL=`zcat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
913        if [ -z "$URL" ];then
914                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
915        fi
916        if [ -z "$URL" ];then
917                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep "text/javascript" | grep -v jQuery | sed -nr 's/.*src="([^"]+)".*/\1/p'`
918        fi
919
920#       echo $URL
921        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.2
922}
923
924
925directstream()
926{
927        echo "$INPUT"
928#       rm -f /tmp/_last_hoster_* > /dev/null 2>&1
929        echo  "$INPUT" > /tmp/.last_hoster_$hoster.log
930}
931
932youtube_dl()
933{
934#       echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dl.log
935#       $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
936#       cat /tmp/youtube_dl.streamlink.log | tail -n1
937        mkdir $TMP > /dev/null 2>&1
938
939        if [ ! -z "$USER" ];then USER="--username $USER";fi
940        if [ ! -z "$PASS" ];then PASS="--password $PASS";fi
941
942        if [ -e /etc/.oebuild ];then
943                echo "$youtubebin $INPUT $USER $PASS" > /tmp/.last_hoster_$TYPE.log
944        else
945                echo "$BIN $youtubebin $INPUT $USER $PASS" > /tmp/.last_hoster_$TYPE.log
946        fi
947        if [ ! -z "$INPUT" ];then
948                if [ -e /etc/.oebuild ];then
949                        if [ ! -e /usr/bin/yt-dlp ] && [ "$DISTRO" != "6.3" ] && [ "$DISTRO" != "6.4" ] && [ "$DISTRO" != "7.0" ];then
950                                opkg update > /dev/null 2>&1
951#                               opkg install $(opkg list *python3* | grep python3- | awk '{ print $1 }' | grep -v "\-src" | grep -v "\-dbg" | grep -v "\-dev" | grep -v "\-test" | grep -v "\-2to3") > /dev/null 2>&1
952                                echo install python3-yt-dlp > /dev/null 2>&1
953                                opkg install python3-yt-dlp > /dev/null 2>&1
954                        fi
955                        if [ ! -e /usr/bin/youtube-dl ];then
956                                opkg update > /dev/null 2>&1
957                                if [ "$DISTRO" == "6.3" ] || [ "$DISTRO" == "6.4" ];then
958                                        opkg install $(opkg list *python* | grep python- | awk '{ print $1 }' | grep -v "\-src" | grep -v "\-dbg" | grep -v "\-dev" | grep -v "\-test" | grep -v "\-2to3") > /dev/null 2>&1
959                                        echo install python-youtube-dl > /dev/null 2>&1
960                                        opkg install python-youtube-dl > /dev/null 2>&1
961                                else
962#                                       opkg install $(opkg list *python3* | grep python3- | awk '{ print $1 }' | grep -v "\-src" | grep -v "\-dbg" | grep -v "\-dev" | grep -v "\-test" | grep -v "\-2to3") > /dev/null 2>&1
963                                        echo install python3-youtube-dl > /dev/null 2>&1
964                                        opkg install python3-youtube-dl > /dev/null 2>&1
965                                fi
966                        fi
967#                       echo remove cookies
968#                       rm /mnt/network/cookies > /dev/null 2>&1
969                        unset PYTHONHOME
970                        unset LD_LIBRARY_PATH
971
972                        $youtubebin "$INPUT" $USER $PASS > $TMP/$TYPE.$hoster.$FILENAME.streamlist
973            if [ `cat $TMP/$TYPE.$hoster.$FILENAME.streamlist | wc -l` -eq 0 ];then
974                        $youtubebin2 "$INPUT" $USER $PASS > $TMP/$TYPE.$hoster.$FILENAME.streamlist
975            fi
976                else
977                        $BIN $youtubebin "$INPUT" $USER $PASS > $TMP/$TYPE.$hoster.$FILENAME.streamlist
978                fi
979                echo $INPUT >> $TMP/$TYPE.$hoster.$FILENAME.streamlist
980        else
981                echo "errormsg=Error: Youtube DL has Emthy Url from Parser" > $TMP/$TYPE.$hoster.$FILENAME.streamlist
982        fi
983#       cat $TMP/$TYPE.$hoster.$FILENAME.streamlist
984        echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
985}
986
987youtube_dlbg()
988{
989#       echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_youtube_dlbg.log
990#       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"`
991#       echo "$URL" >> /tmp/.last_hoster_youtube_dlbg.log
992#       echo $URL
993        mkdir $TMP > /dev/null 2>&1
994        if [ -e /etc/.oebuild ];then
995                if [ ! -e /usr/bin/yt-dlp ] && [ "$DISTRO" != "6.3" ] && [ "$DISTRO" != "6.4" ] && [ "$DISTRO" != "7.0" ];then
996                        opkg update > /dev/null 2>&1
997#                       opkg install $(opkg list *python3* | grep python3- | awk '{ print $1 }' | grep -v "\-src" | grep -v "\-dbg" | grep -v "\-dev" | grep -v "\-test" | grep -v "\-2to3") > /dev/null 2>&1
998                        echo install python3-yt-dlp > /dev/null 2>&1
999                        opkg install python3-yt-dlp > /dev/null 2>&1
1000                fi
1001                if [ ! -e /usr/bin/youtube-dl ];then
1002                        opkg update > /dev/null 2>&1
1003                        if [ "$DISTRO" == "6.3" ] || [ "$DISTRO" == "6.4" ];then
1004                                opkg install $(opkg list *python* | grep python- | awk '{ print $1 }' | grep -v "\-src" | grep -v "\-dbg" | grep -v "\-dev" | grep -v "\-test" | grep -v "\-2to3") > /dev/null 2>&1
1005                                echo install python-youtube-dl > /dev/null 2>&1
1006                                opkg install python-youtube-dl > /dev/null 2>&1
1007                        else
1008#                               opkg install $(opkg list *python3* | grep python3- | awk '{ print $1 }' | grep -v "\-src" | grep -v "\-dbg" | grep -v "\-dev" | grep -v "\-test" | grep -v "\-2to3") > /dev/null 2>&1
1009                                echo install python3-youtube-dl > /dev/null 2>&1
1010                                opkg install python3-youtube-dl > /dev/null 2>&1
1011                        fi
1012                fi
1013#               echo remove cookies
1014#               rm /mnt/network/cookies > /dev/null 2>&1
1015                unset PYTHONHOME
1016                unset LD_LIBRARY_PATH
1017                echo "$youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_${TYPE}_${CURTIME}.log
1018        BIN=""
1019        fi
1020
1021    URL=$(echo "$INPUT" | tr '|' '\n' | head -n1)
1022
1023    TMPREFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+)&.*/\1/p')
1024    if [ -z "$TMPREFERER" ];then
1025            TMPREFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+).*/\1/p')
1026    fi
1027
1028    if [ ! -z "$TMPREFERER" ];then
1029            REFERER="--add-headers Referer:$TMPREFERER"
1030    fi
1031
1032    TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+)&.*/\1/p')
1033    if [ -z "$TMPUSERAGENT" ];then
1034            TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+).*/\1/p')
1035    fi
1036    if [ ! -z "$TMPUSERAGENT" ];then
1037            USERAGENT="--add-headers User-Agent:$TMPUSERAGENT"
1038    fi
1039
1040        echo "$BIN $youtubebinbg -v --output $DEST $URL" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.log
1041        $BIN $youtubebinbg -v $USERAGENT $REFERER --output "$DEST" "$URL" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.log 2>&1
1042
1043    if [ `cat /tmp/.last_hoster_${TYPE}_${CURTIME}.log | grep "ERROR:" | wc -l` -eq 1 ];then
1044                $BIN $youtubebinbg2 -v $USERAGENT $REFERER --output "$DEST" "$URL" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.2.log 2>&1
1045    fi
1046
1047        cat /tmp/.last_hoster_${TYPE}_${CURTIME}.log | tail -n1
1048#       echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
1049}
1050
1051hlsdl()
1052{
1053        mkdir $TMP > /dev/null 2>&1
1054
1055        echo "$HLSBIN $hlsdlbg $DEST $INPUT" > /tmp/.last_hoster_${TYPE}_${CURTIME}.log
1056
1057        REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+)&.*/\1/p')
1058        if [ -z "$REFERER" ];then
1059                REFERER=$(echo "$INPUT" | sed -nr 's/.*Referer=([^=]+).*/\1/p')
1060        fi
1061
1062        if [ ! -z "$REFERER" ];then
1063                REFERER="Referer: $REFERER"
1064        fi
1065
1066        TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+)&.*/\1/p')
1067        if [ -z "$TMPUSERAGENT" ];then
1068                TMPUSERAGENT=$(echo "$INPUT" | sed -nr 's/.*User-Agent=([^=]+).*/\1/p')
1069        fi
1070        if [ ! -z "$TMPUSERAGENT" ];then
1071                USERAGENT=$TMPUSERAGENT
1072        fi
1073
1074        URL=$(echo "$INPUT" | tr '|' '\n' | head -n1)
1075
1076        if [ -e /etc/.oebuild ];then
1077                if [ ! -e /usr/bin/hlsdl ] && [ "$DISTRO" != "6.3" ];then
1078                        opkg update > /dev/null 2>&1
1079                        opkg install hlsdl > /dev/null 2>&1
1080                        opkg install enigma2-plugin-extensions-e2iplayer-deps > /dev/null 2>&1
1081                fi
1082        cp /usr/bin/hlsdl $HLSBIN
1083    fi
1084
1085        echo $HLSBIN "$URL" -v -C /mnt/network/cookies -b -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.log
1086        $HLSBIN "$URL" -v -C /mnt/network/cookies -b -f -u "$USERAGENT" -h "$REFERER" -o "$DEST" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.log
1087#       $HLSBIN "$URL" -v -u "$USERA" -h "$REFERER" -o "$DEST" >> /tmp/.last_hlsdl_hoster_${TYPE}_${CURTIME}.log
1088}
1089
1090curldl()
1091{
1092        mkdir $TMP > /dev/null 2>&1
1093
1094        echo "$CURLBIN $INPUT -o $DEST " > /tmp/.last_hoster_$TYPE.log
1095        $CURLBIN "$INPUT" -o "$DEST"
1096}
1097
1098if [ "$TYPE" == "get" ];then
1099        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1100        case $hoster in
1101                apl*) apl3 $INPUT;;
1102                ecostream) ecostream $INPUT;;
1103                giga) giga $INPUT;;
1104                nosvideo) nosvideo $INPUT;;
1105                allmyvideos) allmyvideos $INPUT;;
1106                flashx) flashx $INPUT;;
1107                openload|oload) openload $INPUT;;
1108                briskfile) briskfile $INPUT;;
1109                videoweed|bitvid) videoweed $INPUT;;
1110                vodlocker) vodlocker $INPUT;;
1111                youwatch|chouhaa|ay8ou8ohth) youwatch $INPUT;;
1112                thevideo|tvad|vev) thevideo $INPUT;;
1113                movshare|wholecloud|vidgg) movshare $INPUT;;
1114                vidto) vidto $INPUT;;
1115                vidup) vidup $INPUT;;
1116                vidzi) vidzi $INPUT;;
1117                vivo) vivo $INPUT;;
1118                goldesel|movie4k|movie4kto|kinox|kinos|kinoz|kinoxto|foxx) cloudflare $INPUT;;
1119                streamcloud) streamcloud $INPUT;;       
1120                nowvideo) nowvideo $INPUT;;
1121                divxstage|cloudtime) divxstage $INPUT;;
1122                novamov|auroravid) novamov $INPUT;;
1123                xvidstage) xvidstage $INPUT;;
1124                waaw|netu|hqq) waaw $INPUT;;
1125                vidcloud|loadvid) vidcloud $INPUT;;
1126                streamango|streamcherry) streamango $INPUT;;
1127                vidlox) vidlox $INPUT;;
1128                redirector|googlevideo|vodcloud|google|skyfall|s4) directstream "$INPUT";;
1129                aliez|aplayer1) aliez $INPUT;;
1130                sport7) sport7 $INPUT;;
1131                sportstream365) sportstream365 $INPUT;;
1132                sportsonline) sportsonline $INPUT;;
1133                assia) assia $INPUT;;
1134                cricfree) cricfree $INPUT;;
1135                adca) broadcast $INPUT;;
1136                streamz) streamz $INPUT;;
1137                mixdrop) mixdrop $INPUT;;
1138                vshare) vshare $INPUT;;
1139                streamcrypt) hoster2=$(streamcrypt $INPUT);;
1140#               voe) voesx $INPUT;;
1141                voe|voe-unblock|voe-unblock|voeunblock|voeunbl0ck|voeunblck|voeunblk|voe-un-block|voeun-block|un-block-voe|v-o-e-unblock|edwardarriveoften|audaciousdefaulthouse|launchreliantcleaverriver|kennethofficialitem|reputationsheriffkennethsand|fittingcentermondaysunday|lukecomparetwo|housecardsummerbutton|fraudclatterflyingcar|wolfdyslectic|bigclatterhomesguideservice|uptodatefinishconferenceroom|realfinanceblogcenter|tinycat-voe-fashion|35volitantplimsoles5|20demidistance9elongations|telyn610zoanthropy|toxitabellaeatrebates306|greaseball6eventual20|745mingiestblissfully|19turanosephantasia|30sensualizeexpression|321naturelikefurfuroid|449unceremoniousnasoseptal|guidon40hyporadius9|cyamidpulverulence530|boonlessbestselling244|antecoxalbobbing1010|matriculant401merited|scatch176duplicities|availedsmallest|counterclockwisejacky|simpulumlamerop|paulkitchendark|metagnathtuggers|gamoneinterrupted|chromotypic|crownmakermacaronicism|generatesnitrosate|yodelswartlike|figeterpiazine|strawberriesporail|valeronevijao|timberwoodanotia|apinchcaseation|nectareousoverelate|nonesnanking|kathleenmemberhistory|stevenimaginelittle|bradleyviewdoctor) voe $INPUT;;
1142                streamtape|strtape|streamta|strcloud) streamtape $INPUT;;
1143                upstream) upstream $INPUT;;
1144                evoload) evoload $INPUT;;
1145                abcvideo) abcvideo $INPUT;;
1146                dood|doodstream) doodstream $INPUT;;
1147        popofthestream) popofthestream $INPUT;;
1148#               *) all $INPUT;;
1149        esac
1150if [ ! -z "$hoster2" ];then
1151        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster2.log
1152        case $hoster2 in
1153                apl*) apl3 $INPUT;;
1154                ecostream) ecostream $INPUT;;
1155                giga) giga $INPUT;;
1156                nosvideo) nosvideo $INPUT;;
1157                allmyvideos) allmyvideos $INPUT;;
1158                flashx) flashx $INPUT;;
1159                openload|oload) openload $INPUT;;
1160                briskfile) briskfile $INPUT;;
1161                videoweed|bitvid) videoweed $INPUT;;
1162                vodlocker) vodlocker $INPUT;;
1163                youwatch|chouhaa|ay8ou8ohth) youwatch $INPUT;;
1164                thevideo|tvad|vev) thevideo $INPUT;;
1165                movshare|wholecloud|vidgg) movshare $INPUT;;
1166                vidto) vidto $INPUT;;
1167                vidup) vidup $INPUT;;
1168                vidzi) vidzi $INPUT;;
1169                vivo) vivo $INPUT;;
1170                goldesel|movie4k|movie4kto|kinox|kinos|kinoz|kinoxto|foxx) cloudflare $INPUT;;
1171                streamcloud) streamcloud $INPUT;;       
1172                nowvideo) nowvideo $INPUT;;
1173                divxstage|cloudtime) divxstage $INPUT;;
1174                novamov|auroravid) novamov $INPUT;;
1175                xvidstage) xvidstage $INPUT;;
1176                waaw|netu|hqq) waaw $INPUT;;
1177                vidcloud|loadvid) vidcloud $INPUT;;
1178                streamango|streamcherry) streamango $INPUT;;
1179                vidlox) vidlox $INPUT;;
1180                redirector|googlevideo|vodcloud|google|skyfall|s4) directstream "$INPUT";;
1181                aliez|aplayer1) aliez $INPUT;;
1182                sport7) sport7 $INPUT;;
1183                sportstream365) sportstream365 $INPUT;;
1184                sportsonline) sportsonline $INPUT;;
1185                assia) assia $INPUT;;
1186                cricfree) cricfree $INPUT;;
1187                adca) broadcast $INPUT;;
1188                streamz) streamz $INPUT;;
1189                mixdrop) mixdrop $INPUT;;
1190                vshare) vshare $INPUT;;
1191                streamcrypt) streamcrypt $INPUT;;
1192#               voe) voesx $INPUT;;
1193                voe|voe-unblock|voe-unblock|voeunblock|voeunbl0ck|voeunblck|voeunblk|voe-un-block|voeun-block|un-block-voe|v-o-e-unblock|edwardarriveoften|audaciousdefaulthouse|launchreliantcleaverriver|kennethofficialitem|reputationsheriffkennethsand|fittingcentermondaysunday|lukecomparetwo|housecardsummerbutton|fraudclatterflyingcar|wolfdyslectic|bigclatterhomesguideservice|uptodatefinishconferenceroom|realfinanceblogcenter|tinycat-voe-fashion|35volitantplimsoles5|20demidistance9elongations|telyn610zoanthropy|toxitabellaeatrebates306|greaseball6eventual20|745mingiestblissfully|19turanosephantasia|30sensualizeexpression|321naturelikefurfuroid|449unceremoniousnasoseptal|guidon40hyporadius9|cyamidpulverulence530|boonlessbestselling244|antecoxalbobbing1010|matriculant401merited|scatch176duplicities|availedsmallest|counterclockwisejacky|simpulumlamerop|paulkitchendark|metagnathtuggers|gamoneinterrupted|chromotypic|crownmakermacaronicism|generatesnitrosate|yodelswartlike|figeterpiazine|strawberriesporail|valeronevijao|timberwoodanotia|apinchcaseation|nectareousoverelate|nonesnanking|kathleenmemberhistory|stevenimaginelittle|bradleyviewdoctor) voe $INPUT;;
1194                streamtape|strtape|streamta|strcloud) streamtape $INPUT;;
1195                upstream) upstream $INPUT;;
1196                evoload) evoload $INPUT;;
1197                abcvideo) abcvideo $INPUT;;
1198                dood|doodstream) doodstream $INPUT;;
1199        popofthestream) popofthestream $INPUT;;
1200#               *) all $INPUT;;
1201        esac
1202fi
1203fi
1204
1205if [ "$TYPE" == "hoster" ];then
1206        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1207        case $hoster in
1208                kinox|kinos|kinoz|kinoxto) kinox $INPUT;;
1209        esac
1210fi
1211
1212if [ "$TYPE" == "youtube_dl" ];then
1213        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1214        case $hoster in
1215                *) youtube_dl $INPUT $USER $PASS;;
1216        esac
1217fi
1218
1219if [ "$TYPE" == "youtube_dlbg" ];then
1220        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1221        case $hoster in
1222                *) youtube_dlbg $DEST $INPUT;;
1223        esac
1224fi
1225
1226if [ "$TYPE" == "hlsdl" ];then
1227        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1228        case $hoster in
1229                *) hlsdl $INPUT;;
1230        esac
1231fi
1232
1233if [ "$TYPE" == "curldl" ];then
1234        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1235        case $hoster in
1236                *) curldl $INPUT;;
1237        esac
1238fi
1239
1240if [ "$TYPE" == "cloudflare" ];then
1241        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1242        case $hoster in
1243                *) cloudflare $INPUT;;
1244        esac
1245fi
1246
1247curlcmd()
1248{
1249        $curlbin "$INPUT" "$2" "$3"
1250}
1251
1252if [ "$TYPE" == "curl" ];then
1253        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
1254        case $hoster in
1255                *) curlcmd "$INPUT" "$3" "$4";;
1256        esac
1257fi
1258
1259
Note: See TracBrowser for help on using the repository browser.