Changeset 39598
- Timestamp:
- 01/01/17 22:33:28 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/nowvideo.py
r39592 r39598 28 28 def get_media_url(self, host, media_id): 29 29 web_url = self.get_url(host, media_id) 30 headers = {'User-Agent': common.FF_USER_AGENT} 30 31 stream_url = '' 31 html = self.net.http_GET(web_url ).content32 html = self.net.http_GET(web_url, headers=headers).content 32 33 try: 33 34 r = re.search('flashvars.filekey=(.+?);', html) … … 58 59 59 60 if stream_url: 60 print stream_url + helpers.append_headers({'Referer': web_url}) 61 headers.update({'Referer': web_url, }) 62 print stream_url + helpers.append_headers(headers) 63 # print stream_url + helpers.append_headers({'Referer': web_url}) 61 64 65 62 66 def get_url(self, host, media_id): 63 67 return 'http://embed.nowvideo.sx/embed/?v=%s' % media_id
Note: See TracChangeset
for help on using the changeset viewer.