Ignore:
Timestamp:
12/12/16 00:55:52 (5 years ago)
Author:
tt4sk
Message:

[TiThek] fixed: user-agent in localparser

Location:
titan/mediathek/localhoster
Files:
2 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
Note: See TracChangeset for help on using the changeset viewer.