Changeset 42565 for titan/mediathek


Ignore:
Timestamp:
07/28/18 15:03:42 (6 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r42564 r42565  
    341341            query = '%s/cdn-cgi/l/chk_jschl?pass=%s&jschl_vc=%s&jschl_answer=%s' % \
    342342                    (url, urllib.quote_plus(passval), jschl, answer)
    343  #           time.sleep(9)
     343            time.sleep(9)
    344344
    345345        self._update_opener(cloudflare_jar=True)
     
    377377            compression.
    378378        """
    379         print "aaaaaaaaa"
    380379        netloc = urlparse(url).netloc
    381380        if not netloc:
     
    383382        cloudflare_url = urlunparse((urlparse(url).scheme, netloc, '', '', '', ''))
    384383        try:
    385             print "bbbbbbbbbb"
    386 
    387384            self._cloudflare_challenge(cloudflare_url, challenge, form_data, headers, compression)
    388             print "bbbbbbbbbb1"
    389 
    390385            for c in self._cloudflare_jar:
    391386                self._cj.set_cookie(c)
    392             print "bbbbbbbbbb2"
    393 
    394387            self._update_opener()
    395             print "bbbbbbbbbb3"
    396 
    397         except:
    398             print "ccccccccc"
    399 
     388        except:
    400389            # make sure we update to main jar
    401390            self._update_opener()
     
    648637            except urllib2.HTTPError as e:
    649638                if e.code == 503:
    650                     print "111111111"
    651639                    try:
    652                         print "222222222"
    653640                        self._set_cloudflare(url, e.read(), form_data, headers, compression)
    654641                    except:
    655                         print "333333333"
    656642                        raise urllib2.HTTPError, e
    657643                    req = urllib2.Request(url)
    658                     print "4"
    659644
    660645                    if form_data:
Note: See TracChangeset for help on using the changeset viewer.