Changeset 44468


Ignore:
Timestamp:
01/01/20 21:17:52 (3 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r44467 r44468  
    2424                   'Content-Type': 'text/html; charset=utf-8'}
    2525
     26#        html = self.net.http_GET(web_url, headers=headers).content
     27#        #html = self.request(web_url, cookie_file=/mnt/network/cookies, cloudflare=True)
     28#        ret = self.net.save_cookies('/mnt/network/cookies')     
     29#        print "html", html.encode('utf8')
    2630
    27 #        print "cloudflare.CheckIfActive: ", web_url
    28 
    29         try:
    30             CF = cloudflare.CloudflareBypass()
    31             html = CF.GetHtml(web_url)
    32             print CF.GetReponseInfo()
    33             print "html", html
    34         except:
    35             html = self.net.http_GET(web_url, headers=headers).content
    36             #html = self.request(web_url, cookie_file=/mnt/network/cookies, cloudflare=True)
    37             ret = self.net.save_cookies('/mnt/network/cookies')     
    38             print "html", html.encode('utf8')
     31        CF = cloudflare.CloudflareBypass()
     32        html = CF.GetHtml(web_url)
     33        print CF.GetReponseInfo()
     34        print "html", html
    3935
    4036sys.stdout = CloudflareResolver()
Note: See TracChangeset for help on using the changeset viewer.