print url with bad content-type
This commit is contained in:
parent
48c666f133
commit
aad477ef90
@ -123,8 +123,9 @@ class StreamProvider():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.info("%s <%s>", e, self.upstream)
|
self.logger.info("%s <%s>", e, self.upstream)
|
||||||
else:
|
else:
|
||||||
ctype = resp.headers.get("Content-Type", "binary/octet-stream").lower()
|
ctype = resp.headers.get("Content-Type", "text/plain").lower()
|
||||||
if ctype.startswith("text"):
|
if ctype.startswith("text"):
|
||||||
|
self.logger.info("Bad Content-Type %s", data.upstream())
|
||||||
ctype = None
|
ctype = None
|
||||||
elif "mpegurl" in ctype:
|
elif "mpegurl" in ctype:
|
||||||
ctype = "application/vnd.apple.mpegurl"
|
ctype = "application/vnd.apple.mpegurl"
|
||||||
|
Loading…
Reference in New Issue
Block a user