Ignore:
Timestamp:
04/08/16 19:44:24 (6 years ago)
Author:
obi
Message:

fix giga

File:
1 edited

Legend:

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

    r37175 r37513  
    2929}
    3030
     31giga()
     32{
     33        streampage=`$curlbin $INPUT | grep "<iframe src=" | cut -d'"' -f2 | head -n1`
     34        streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 1080p`
     35        if [ -z "$streamurl" ];then
     36                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 720p`
     37        fi
     38        if [ -z "$streamurl" ];then
     39                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 480p`
     40        fi
     41        if [ -z "$streamurl" ];then
     42                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 360p`
     43        fi
     44        if [ -z "$streamurl" ];then
     45                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 240p`
     46        fi
     47        if [ -z "$streamurl" ];then
     48                streamurl=`$curlbin $streampage | grep '{file:' | cut -d'"' -f2 | grep 180p`
     49        fi
     50        echo $streamurl
     51}
     52
    3153if [ "$TYPE" == "get" ];then
    3254        case $hoster in
    3355                ecostream) ecostream $INPUT;;
     56                giga) giga $INPUT;;
    3457        esac
    3558fi
Note: See TracChangeset for help on using the changeset viewer.