- Timestamp:
- 01/04/17 19:14:23 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/novamov.py
r39650 r39651 28 28 def get_media_url(self, host, media_id): 29 29 web_url = self.get_url(host, media_id) 30 31 html = self.net.http_GET(web_url).content 30 headers = {'User-Agent': common.FF_USER_AGENT} 31 stream_url = '' 32 html = self.net.http_GET(web_url, headers=headers).content 32 33 33 34 try: … … 51 52 if r: 52 53 stream_url = r.group(1) 53 print stream_url 54 headers.update({'Referer': web_url, }) 55 print stream_url + helpers.append_headers(headers) 54 56 55 57 else:
Note: See TracChangeset
for help on using the changeset viewer.