'Finds `MovieListMovie` corresponding to this entry, if it exists.'

@with_session
def _find_entry(self, entry, session=None):

    for id_name in MovieListBase().supported_ids:
        if entry.get(id_name):
            log.debug(u'trying    to    match    movie    based    off    id    %s:    %s', id_name, entry[id_name])
            res = self._db_list(session).movies.join(MovieListMovie.ids).filter(and_((MovieListID.id_name == id_name), (MovieListID.id_value == entry[id_name]))).first()
            if res:
                log.debug(u'found    movie    %s', res)
                return res
    if (not entry.get(u'movie_name')):
        self._parse_title(entry)
    if entry.get(u'movie_name'):
        name = entry[u'movie_name']
        year = (entry.get(u'movie_year') if entry.get(u'movie_year') else None)
    else:
        log.warning(u'Could    not    get    a    movie    name,    skipping')
        return
    log.debug(u'trying    to    match    movie    based    of    name:    %s    and    year:    %s', name, year)
    res = self._db_list(session).movies.filter((func.lower(MovieListMovie.title) == name.lower())).filter((MovieListMovie.year == year)).first()
    if res:
        log.debug(u'found    movie    %s', res)
    return res
