@staticmethod
def extract_title(soup):
    """Sometimes search results have no contents. This function tries to extract something sensible."""
    if isinstance(soup.contents, list) and soup.contents:
        return soup.contents[0]
    if soup.get('href') and 'torrent' in soup.get('href'):
        return soup.get('href').rsplit('/', 1)[-1]
