def xml_findtext(xpath):
    """Find a XML element via xpath and extract its text."""
    return all(
        xml_find(xpath),
        getattr("text"),
    )
Find a XML element via xpath and extract its text.
src/livestreamer/plugin/api/validate.py