Changeset 40911
- Timestamp:
- 09/04/17 11:42:42 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/openload.py
r40905 r40911 60 60 61 61 def __init__(self): 62 self.net = Net( )62 self.net = Net(cookie_file='/mnt/network/cookies', cloudflare=True) 63 63 self.headers = {'User-Agent': common.ANDROID_USER_AGENT} 64 64 url = str(sys.argv[1]) … … 270 270 def GetDukPath(self): 271 271 # return "/tmp/localhoster/bin/duk.arm" 272 return "/tmp/localhoster/bin/duk.mipsel" 272 arch = self.command("cat /etc/.arch") 273 # print "arch", arch 274 return "/tmp/localhoster/bin/duk.%s" % (arch) 273 275 # return "/tmp/localhoster/bin/duk.sh4" 274 276 … … 386 388 headers.update(self.headers) 387 389 data = self.net.http_GET(web_url, headers=headers).content 390 ret = self.net.save_cookies('/mnt/network/cookies') 391 388 392 # print "data", data 389 393 baseUrl = web_url
Note: See TracChangeset
for help on using the changeset viewer.