Changeset 39680


Ignore:
Timestamp:
Jan 6, 2017, 11:17:56 PM (2 years ago)
Author:
obi
Message:

reset helpers

File:
1 edited

Legend:

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

    r39358 r39680  
    175175
    176176    response = net.http_GET(url, headers=headers)
    177     response_headers = response.get_headers(as_dict=True)
     177#    response_headers = response.get_headers(as_dict=True)
    178178    response_headers = response.get_headers()
    179179
    180180    headers.update({'Referer': url})
    181     cookie = response_headers.get('Set-Cookie', None)
    182     if cookie:
    183         headers.update({'Cookie': cookie})
     181#    cookie = response_headers.get('Set-Cookie', None)
     182#    if cookie:
     183#        headers.update({'Cookie': cookie})
    184184    html = response.content
    185185
    186186    source_list = scrape_sources(html, result_blacklist)
    187187    source = pick_source(source_list)
    188     return source + append_headers(headers)
    189 #    return source
     188#    return source + append_headers(headers)
     189    return source
Note: See TracChangeset for help on using the changeset viewer.