Changeset 41385 for titan/mediathek


Ignore:
Timestamp:
Dec 10, 2017, 6:22:55 AM (2 years ago)
Author:
obi
Message:

add broadcast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r41375 r41385  
    528528
    529529                #echo "$URL$EXTRA"
     530                echo "$STREAMLIST"
     531        fi
     532}
     533
     534broadcast()
     535{
     536        #http://assia.tv/live/gol-tv/?lang=ru
     537        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     538        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     539        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     540
     541        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     542        if [ -e "$STREAMLIST" ];then
     543                rm -f $STREAMLIST > /dev/null 2>&1
     544        fi
     545
     546        #$curlbin --referer "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0" "http://bro.adca.st/token2.php"
     547        $curlbin "http://bro.adca.st/token2.php" --referer "$INPUT" -o $TMP/cache.hoster.$hoster.1
     548
     549        #{"rumba":"ruYg748QTLGfAn2iZo3bpw&expires=1512880893"}
     550        TOKEN=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*"rumba":"([^"]+)".*/\1/p' | tail -n1)
     551
     552        #$curlbin --referer "http://bonstreams.net" "http://bro.adca.st/stream.php?id=17733&p=1&c=0&stretching=uniform&old=0"
     553        $curlbin "$INPUT" --referer "http://bonstreams.net" -o $TMP/cache.hoster.$hoster.2
     554
     555    #trap = "aHR0cDovL3RpZXIyLnBva2VyY29hbGl0aW9uLnB3L28xMC8xNzczMy5tM3U4P3NmPU5UazVOR0UzWXpSaE16bGpOUT09JnRva2VuPQ=
     556        TRAP=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*trap = "([^"]+)".*/\1/p' | tail -n1)
     557
     558        echo "$TRAP" > $TMP/cache.hoster.$hoster.base64
     559        TMPURL=$(base64 -d $TMP/cache.hoster.$hoster.base64)
     560
     561        # enable httponly cookie
     562        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
     563
     564        if [ ! -z "$TMPURL" ];then
     565                #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
     566                echo "$TMPURL$TOKEN$EXTRA" > $STREAMLIST
    530567                echo "$STREAMLIST"
    531568        fi
     
    659696                assia) assia $INPUT;;
    660697                cricfree) cricfree $INPUT;;
     698                adca) broadcast $INPUT;;
    661699#               *) all $INPUT;;
    662700        esac
Note: See TracChangeset for help on using the changeset viewer.