Changeset 39598


Ignore:
Timestamp:
Jan 1, 2017, 10:33:28 PM (3 years ago)
Author:
obi
Message:

fix nowvideo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/nowvideo.py

    r39592 r39598  
    2828    def get_media_url(self, host, media_id):
    2929        web_url = self.get_url(host, media_id)
     30        headers = {'User-Agent': common.FF_USER_AGENT}
    3031        stream_url = ''
    31         html = self.net.http_GET(web_url).content
     32        html = self.net.http_GET(web_url, headers=headers).content
    3233        try:
    3334            r = re.search('flashvars.filekey=(.+?);', html)
     
    5859
    5960        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})
    6164
     65 
    6266    def get_url(self, host, media_id):
    6367        return 'http://embed.nowvideo.sx/embed/?v=%s' % media_id
Note: See TracChangeset for help on using the changeset viewer.