

def get_show(self, imdb, tvdb, tvshowtitle, year):
    try:
        tvshowtitle = cleantitle.tv(tvshowtitle)
        query = urlparse.urljoin(self.base_link, self.search_link)
        result = client.source(query)
        result = re.compile('(<li>.+?</li>)').findall(result)
        result = [re.compile('href="(.+?)">(.+?)<').findall(i) for i in result]
        result = [i[0] for i in result if (len(i[0]) > 0)]
        result = [i for i in result if (tvshowtitle == cleantitle.tv(i[1]))]
        result = [i[0] for i in result][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/wsonline_tv.py source.get_show/original