

def get_movie(self, imdb, title, year):
    try:
        query = (self.search_link2 % urllib.quote_plus(title))
        query = urlparse.urljoin(self.base_link, query)
        for i in range(5):
            result = client.source(query, close=False)
            if (not (result == None)):
                break
        result = client.parseDOM(query, 'section', attrs={
            'id': 'contentrea',
        })[0]
        title = cleantitle.movie(title)
        years = [('%s' % str(year)), ('%s' % str((int(year) + 1))), ('%s' % str((int(year) - 1)))]
        result = zip(client.parseDOM(result, 'a', ret='href'), client.parseDOM(result, 'a'))
        result = [(i[0], re.compile('(^Watch Full "|^Watch |)(.+? \\d{4})').findall(i[1])) for i in result]
        result = [(i[0], i[1][0][(- 1)]) for i in result if (len(i[1]) > 0)]
        result = [(i[0], re.compile('(.+?) (\\d{4})$').findall(i[1])) for i in result]
        result = [(i[0], i[1][0][0], i[1][0][1]) for i in result if (len(i[1]) > 0)]
        result = [i for i in result if any(((x in i[2]) for x in years))]
        result = [i[0] for i in result if (title == cleantitle.movie(i[1]))][0]
        try:
            url = re.compile('//.+?(/.+)').findall(result)[0]
        except:
            url = result
        url = client.replaceHTMLCodes(url)
        url = url.encode('utf-8')
        return url
    except:
        return

dataset/ETHPy150Open mrknow/filmkodi/plugin.video.specto/resources/lib/sources/yify_mv_null.py source.get_movie/VarMisuse@93/103 `result`->`query`