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