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