Ignore:
Timestamp:
12/02/16 23:31:14 (5 years ago)
Author:
tt4sk
Message:

First call of goldesel.to with goldesel.py / net.py, store cookie in /mnt/network/cookies, following calls with curl using same cookie and user agent.

File:
1 edited

Legend:

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

    r39387 r39400  
    163163                rm $TMP/$PARSER.$INPUT.list
    164164        fi
    165 #       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1
    166         /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
     165        $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
     166#       /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
    167167
    168168        cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!<h2>Stream-Links</h2>!\nfound=!g' | sed 's!<h2>Sample-Links</h2>!\nerror=!g' | grep ^found= | sed 's/<li data=/\ndata=/g' | grep ^data= >$TMP/cache.$PARSER.$INPUT.2
     
    184184{
    185185        rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
    186         $curlbin $URL/res/links -X POST --data "$PAGE" -o $TMP/cache.$PARSER.$INPUT.1
     186        $curlbin $URL/res/links -X POST --data "$PAGE" -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
    187187        STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!url="http://dref.me/?!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2 | sed 's!%3A!:!g' | sed 's!%2F!/!g'`
    188188#       rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
Note: See TracChangeset for help on using the changeset viewer.