diff --git a/stream.py b/stream.py index 99690fa..f76d364 100755 --- a/stream.py +++ b/stream.py @@ -91,7 +91,6 @@ def upstream_type(current, proxy): return resp.headers.get("Content-Type", "binary/octet-stream") def rewrite(current, provider, proxy, ctype): - resp = requests.get(current, proxies=proxy.req) ndata = None if resp.text is not None: @@ -203,7 +202,7 @@ class MainHandler(tornado.web.RequestHandler): else: ctype = upstream_type(upstream, proxy) data = None - if "mpgurl" in ctype: + if "mpegurl" in ctype.lower(): data = rewrite(upstream, provider, proxy) else: ldata = {}