add debug print
This commit is contained in:
parent
0c4e62d5fb
commit
3cd9a34535
@ -49,6 +49,7 @@ 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", "text/plain").lower()
|
||||||
|
print(ctype)
|
||||||
if "mpegurl" not in ctype:
|
if "mpegurl" not in ctype:
|
||||||
return None
|
return None
|
||||||
resp = requests.get(current)
|
resp = requests.get(current)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user