Ignore:
Timestamp:
Sep 4, 2017, 11:42:42 AM (2 years ago)
Author:
obi
Message:

tithek openload add arch check

File:
1 edited

Legend:

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

    r40905 r40911  
    6060
    6161    def __init__(self):
    62         self.net = Net()
     62        self.net = Net(cookie_file='/mnt/network/cookies', cloudflare=True)
    6363        self.headers = {'User-Agent': common.ANDROID_USER_AGENT}
    6464        url = str(sys.argv[1])
     
    270270    def GetDukPath(self):
    271271#        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)
    273275 #       return "/tmp/localhoster/bin/duk.sh4"
    274276
     
    386388        headers.update(self.headers)
    387389        data = self.net.http_GET(web_url, headers=headers).content
     390        ret = self.net.save_cookies('/mnt/network/cookies')
     391
    388392#        print "data", data
    389393        baseUrl = web_url
Note: See TracChangeset for help on using the changeset viewer.