Ignore:
Timestamp:
Dec 9, 2017, 1:40:08 AM (23 months ago)
Author:
obi
Message:

add livehoster sportsonline

File:
1 edited

Legend:

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

    r41362 r41372  
    400400}
    401401
     402sportsonline()
     403{
     404        #http://sportsonline.pw/livetv/pt-sporttv1.html
     405        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     406        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     407        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     408
     409        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     410        if [ -e "$STREAMLIST" ];then
     411                rm -f $STREAMLIST > /dev/null 2>&1
     412        fi
     413
     414        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
     415
     416        #<iframe src="http://widestream.io/embedClappr.php?live=13593" width="100%" height="100%" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>
     417        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*iframe src="([^"]+)".*/\1/p')
     418
     419        $curlbin "$TMPURL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
     420
     421        #source: "http://ultra.widestream.io:8081/wideedge/1022qvk/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvOS8yMDE3IDEyOjMyOjQzIEFNJmhhc2hfdmFsdWU9ZW9WeThRL0JmaVA2dnFUQm15Ukkvdz09JnZhbGlkbWludXRlcz0yMA==",
     422        TMPURL=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*source: "([^"]+)".*/\1/p')
     423
     424        if [ ! -z "$TMPURL" ];then
     425                echo "$TMPURL$EXTRA" > $STREAMLIST
     426                #echo "$URL$EXTRA"
     427                echo "$STREAMLIST"
     428        fi
     429}
    402430
    403431all()
     
    525553                sport7) sport7 $INPUT;;
    526554                sportstream365) sportstream365 $INPUT;;
    527                 *) all $INPUT;;
    528 
     555                sportsonline) sportsonline $INPUT;;
     556#               *) all $INPUT;;
    529557        esac
    530558fi
Note: See TracChangeset for help on using the changeset viewer.