Ignore:
Timestamp:
Oct 17, 2018, 10:50:07 PM (2 years ago)
Author:
obi
Message:

tithek foy thevideo

File:
1 edited

Legend:

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

    r42650 r42919  
    191191thevideo()
    192192{
    193         $BIN $CMD/thevideo.py $INPUT
     193        $BIN $CMD/thevideo.py $INPUT > $TMP/cache.$FILENAME.1
     194
     195        videocode=`cat $TMP/cache.$FILENAME.1`
     196
     197        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     198
     199        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     200        if [ -e "$STREAMLIST" ];then
     201                rm -f $STREAMLIST > /dev/null 2>&1
     202        fi
     203
     204        $curlbin --data '{}' https://vev.io/api/serve/video/$videocode -o $TMP/cache.$FILENAME.2
     205        cat $TMP/cache.$FILENAME.2 | sed 's/{/\n/g' | sed 's/,/\n/g' | grep "/stream/" >$TMP/cache.$FILENAME.3
     206
     207        while read -u 3 ROUND; do
     208                TITEL=`echo $ROUND | cut -d'"' -f2`
     209                URL=`echo $ROUND | cut -d'"' -f4`
     210
     211                if [ ! -z "$URL" ];then
     212                        echo "$URL" | tr -d '\n' | tr -d '\r' >> $STREAMLIST
     213                        echo "" >> $STREAMLIST
     214                fi
     215
     216
     217        done 3<$TMP/cache.$FILENAME.3
     218        rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     219        echo $STREAMLIST
    194220}
    195221
     
    769795                vodlocker) vodlocker $INPUT;;
    770796                youwatch|chouhaa|ay8ou8ohth) youwatch $INPUT;;
    771                 thevideo) thevideo $INPUT;;
     797                thevideo|tvad|vev) thevideo $INPUT;;
    772798                movshare|wholecloud|vidgg) movshare $INPUT;;
    773799                vidto) vidto $INPUT;;
     
    804830fi
    805831
    806 if [ "$TYPE" == "youtube_dl" ];then
     832if [ "$TYPE" == "youtube_dl" ];thenthevideo.cc
    807833        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
    808834        case $hoster in
Note: See TracChangeset for help on using the changeset viewer.