def METHOD_NAME(result: Dict, generic_cover: str) -> str:
    if result["volumeInfo"].get("imageLinks"):
        cover_url = result["volumeInfo"]["imageLinks"]["thumbnail"]
        # strip curl in cover
        cover_url = cover_url.replace("&edge=curl", "")
        # request 800x900 cover image (higher resolution)
        cover_url += "&fife=w800-h900"
        return cover_url.replace("http://", "https://")
    return generic_cover