Changeset 39680
- Timestamp:
- 01/06/17 23:17:56 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/lib/helpers.py
r39358 r39680 175 175 176 176 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) 178 178 response_headers = response.get_headers() 179 179 180 180 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}) 184 184 html = response.content 185 185 186 186 source_list = scrape_sources(html, result_blacklist) 187 187 source = pick_source(source_list) 188 return source + append_headers(headers)189 #return source188 # return source + append_headers(headers) 189 return source
Note: See TracChangeset
for help on using the changeset viewer.