def METHOD_NAME(*, content: bytes) -> str:
    if "<!DOCTYPE HTML PUBLIC" not in str(content):
        raise TypeError
    soup = BeautifulSoup(content, "lxml")
    result = soup.find("meta", attrs={"http-equiv": "REFRESH"})
    if result:
        _, text = result["content"].split(";")
        if "http" in text:
            url = text[text.lower().find("http") :]
            url = unquote(url, encoding="utf-8", errors="replace")
            url = url[: url.find("?")]
            return str(url)
    return ""