print url with bad content-type
This commit is contained in:
		@@ -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"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user