Ignore:
Timestamp:
12/02/16 23:31:14 (6 years ago)
Author:
tt4sk
Message:

First call of goldesel.to with goldesel.py / net.py, store cookie in /mnt/network/cookies, following calls with curl using same cookie and user agent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/lib/net.py

    r39388 r39400  
    5151    ANDROID_USER_AGENT = 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36'
    5252
    53     _cj = cookielib.LWPCookieJar()
     53    _cj = cookielib.MozillaCookieJar()
    5454
    5555    _proxy = None
     
    8787
    8888        # empty jar for each instance rather than scope of the import
    89         self._cloudflare_jar = cookielib.LWPCookieJar()
     89        self._cloudflare_jar = cookielib.MozillaCookieJar()
    9090
    9191        self.cloudflare = cloudflare
     
    170170
    171171        if cloudflare_jar:
    172             self._cloudflare_jar = cookielib.LWPCookieJar()
     172            self._cloudflare_jar = cookielib.MozillaCookieJar()
    173173            jar = self._cloudflare_jar
    174174        else:
Note: See TracChangeset for help on using the changeset viewer.