move status print
This commit is contained in:
		@@ -48,10 +48,13 @@ if icecast_server is not None and stream_server is not None:
 | 
			
		||||
 | 
			
		||||
def rewrite(current, proxy):
 | 
			
		||||
    resp = requests.head(current)
 | 
			
		||||
    ctype = resp.headers.get("Content-Type", "text/plain").lower()
 | 
			
		||||
    ctype = resp.headers.get("Content-Type")
 | 
			
		||||
    print(ctype)
 | 
			
		||||
    if "mpegurl" not in ctype:
 | 
			
		||||
    if ctype is None:
 | 
			
		||||
        return None
 | 
			
		||||
    else:
 | 
			
		||||
        if "mpegurl" not in ctype.lower():
 | 
			
		||||
            return None
 | 
			
		||||
    resp = requests.get(current)
 | 
			
		||||
    ndata = None
 | 
			
		||||
    if resp.text is not None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user