Changeset 40941 for titan/mediathek


Ignore:
Timestamp:
Sep 9, 2017, 10:19:44 PM (2 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_secret/bs.sh

    r40940 r40941  
    230230hoster()
    231231{
    232         URL=`echo $URL | sed 's!//bs.to/out/!//bs.to/api/watch/!'`
    233         HEADER=`$BIN /tmp/localhoster/bs.py $URL`
    234         STREAM=`$curlbin $HEADER -o - $URL$PARAM | awk '
     232        STREAM=`$curlbin -o - $URL$PARAM | awk '
     233/class=\"hoster-player\"/ { i = index($0, "<a href=\"") + 9
     234                            j = index(substr($0, i), "\"") - 1
     235                            url = substr($0, i, j)
     236                            print url
     237                            next
     238                          }
     239'`
     240
     241        STREAM=`echo $STREAM | sed 's!https://bs.to/out/!watch/!'`
     242        HEADER=`$BIN /tmp/localhoster/bs.py $STREAM`
     243
     244        $curlbin -H "$HEADER" -o - $URL/api/$STREAM >/tmp/tithek/$PARSER.hoster.1
     245        cat /tmp/tithek/$PARSER.hoster.1 | grep fullurl | sed 's!fullurl!\nfullurl!' | grep ^fullurl | cut -d'"' -f3 | tr -d '\\'
     246}
     247
     248hosterold()
     249{
     250        STREAM=`$curlbin -o - $URL$PARAM | awk '
    235251/class=\"hoster-player\"/ { i = index($0, "<a href=\"") + 9
    236252                            j = index(substr($0, i), "\"") - 1
Note: See TracChangeset for help on using the changeset viewer.