Changeset 39651


Ignore:
Timestamp:
Jan 4, 2017, 7:14:23 PM (3 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r39650 r39651  
    2828    def get_media_url(self, host, media_id):
    2929        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
    3233
    3334        try:
     
    5152        if r:
    5253            stream_url = r.group(1)
    53             print stream_url
     54            headers.update({'Referer': web_url, })
     55            print stream_url + helpers.append_headers(headers)
    5456       
    5557        else:
Note: See TracChangeset for help on using the changeset viewer.