add debug print

This commit is contained in:
Roy Olav Purser 2021-05-09 09:53:37 +02:00
parent 0c4e62d5fb
commit 3cd9a34535
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -49,6 +49,7 @@ 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()
print(ctype)
if "mpegurl" not in ctype:
return None
resp = requests.get(current)