move status print
This commit is contained in:
parent
3cd9a34535
commit
0366e534d0
@ -48,10 +48,13 @@ 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
|
return None
|
||||||
|
else:
|
||||||
|
if "mpegurl" not in ctype.lower():
|
||||||
|
return None
|
||||||
resp = requests.get(current)
|
resp = requests.get(current)
|
||||||
ndata = None
|
ndata = None
|
||||||
if resp.text is not None:
|
if resp.text is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user