Changeset 39427


Ignore:
Timestamp:
Dec 12, 2016, 12:55:52 AM (4 years ago)
Author:
tt4sk
Message:

[TiThek] fixed: user-agent in localparser

Location:
titan/mediathek
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/goldesel.py

    r39400 r39427  
    1818
    1919    def get_answer_code(self, web_url):
    20         headers = {'User-Agent': common.FF_USER_AGENT}                 
     20        headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'}                 
    2121        html = self.net.http_GET(web_url, headers=headers).content
    2222        #html = self.request(web_url, cookie_file=/mnt/network/cookies, cloudflare=True)
  • titan/mediathek/localhoster/hoster.sh

    r39400 r39427  
    1010BOX=`cat /etc/model`
    1111debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
    12 curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'"
     12curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'"
    1313curlbin2='curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
    1414if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
  • titan/mediathek/localparser_secret/goldesel.sh

    r39401 r39427  
    117117                                LINE="$TITLE#$SRC $SRC hosterlist $NEWPAGE#$PIC#$TMPPIC#$NAME#0"
    118118                                echo "$LINE" >> $TMP/$PARSER.$INPUT.list
    119         $curlbin $PIC -o /tmp/tithek/$TMPPIC -A 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
    120119                        fi
    121120                fi
     
    154153                        LINE="$TITLE#$SRC $SRC hosterlist $NEWPAGE#$PIC#$TMPPIC#$NAME#0"
    155154                        echo "$LINE" >> $TMP/$PARSER.$INPUT.list
    156       $curlbin $PIC -o /tmp/tithek/$TMPPIC -A 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
    157155                fi
    158156        done 3<$TMP/cache.$PARSER.$INPUT.2
     
    166164                rm $TMP/$PARSER.$INPUT.list
    167165        fi
    168         $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        $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
    169167#       /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
    170168
     
    187185{
    188186        rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
    189         $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'
     187        $curlbin $URL/res/links -X POST --data "$PAGE" -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
    190188        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'`
    191189#       rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
Note: See TracChangeset for help on using the changeset viewer.