Ignore:
Timestamp:
01/01/20 21:45:36 (4 years ago)
Author:
obi
Message:

fix

Location:
titan/mediathek/localhoster
Files:
2 edited

Legend:

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

    r44468 r44469  
    66import lib.common as common
    77import re
     8import cookielib
     9from lib.cCFScrape import cCFScrape
     10#from lib.cloudflare import cloudflare
    811import lib.cloudflare as cloudflare
     12#from lib.cCFScrape import cCFScrape
    913
    1014class CloudflareResolver(object):
     
    1216        self.net = Net(cookie_file='/mnt/network/cookies', http_debug=True, cloudflare=True)
    1317#        self.net = Net(cookie_file='/mnt/network/cookies', cloudflare=True)
     18
    1419        url = str(sys.argv[1])
    1520        return self.get_answer_code(url)
     
    2429                   'Content-Type': 'text/html; charset=utf-8'}
    2530
    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')
    30 
    3131        CF = cloudflare.CloudflareBypass()
    3232        html = CF.GetHtml(web_url)
     33        ret = self.net.save_cookies('/mnt/network/cookies')     
     34
    3335        print CF.GetReponseInfo()
    34         print "html", html
     36
     37        try:
     38            print "html", html.encode('utf8')
     39        except:
     40            print html
    3541
    3642sys.stdout = CloudflareResolver()
    3743
    38 
  • titan/mediathek/localhoster/lib/common.py

    r44466 r44469  
    3434#has_addon = kodi.has_addon
    3535
    36 profilePath = "/tmp/pro"
     36profilePath = "/mnt/network"
    3737
    3838RAND_UA = get_ua()
Note: See TracChangeset for help on using the changeset viewer.