'Search the URL title for the given `title`.
:param str title: title to search for.
:param str kind: kind of the title, ``movie`` or ``series``.
:return: the URL version of the title.
:rtype: str or None'

def _search_url_title(self, title, kind):

    logger.info('Searching    title    name    for    %r', title)
    r = self.session.get((self.server + 'subtitle/search/'), params={'q': title}, allow_redirects=False, timeout=10)
    r.raise_for_status()
    if r.is_redirect:
        parts = r.headers['Location'].split('/')
        if (parts[(-3)] == kind):
            return parts[(-2)]
        return None
    soup = BeautifulSoup(r.content, ['lxml', 'html.parser'])
    suggestions = soup.select('#processes    div.generalWindowTop    a')
    logger.debug('Found    %d    suggestions', len(suggestions))
    for suggestion in suggestions:
        parts = suggestion.attrs['href'].split('/')
        if (parts[(-3)] == kind):
            return parts[(-2)]
