Changeset 41373 for titan/mediathek


Ignore:
Timestamp:
Dec 9, 2017, 2:04:35 AM (2 years ago)
Author:
obi
Message:

tithek add livehoster assia.tv

File:
1 edited

Legend:

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

    r41372 r41373  
    425425                echo "$TMPURL$EXTRA" > $STREAMLIST
    426426                #echo "$URL$EXTRA"
     427                echo "$STREAMLIST"
     428        fi
     429}
     430
     431assia()
     432{
     433        #http://assia.tv/live/gol-tv/?lang=ru
     434        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     435        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     436        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     437
     438        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     439        if [ -e "$STREAMLIST" ];then
     440                rm -f $STREAMLIST > /dev/null 2>&1
     441        fi
     442
     443        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
     444
     445        #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);}});
     446        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*file:"([^"]+)".*/\1/p' | tail -n1)
     447
     448        if [ ! -z "$TMPURL" ];then
     449                echo "$TMPURL$EXTRA" > $STREAMLIST
     450                #echo "$URL$EXTRA"
     451                #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
     452
    427453                echo "$STREAMLIST"
    428454        fi
     
    554580                sportstream365) sportstream365 $INPUT;;
    555581                sportsonline) sportsonline $INPUT;;
     582                assia) assia $INPUT;;
    556583#               *) all $INPUT;;
    557584        esac
Note: See TracChangeset for help on using the changeset viewer.