diff --git a/backend/chainetv/emission.py b/backend/chainetv/emission.py index 472055e..cfa032e 100644 --- a/backend/chainetv/emission.py +++ b/backend/chainetv/emission.py @@ -38,7 +38,7 @@ class Emmission(object): linkchaine=self.html.find(text=re.compile(re.escape(strsearch))) if linkchaine == None: return "can't find channel" - link = linkchaine.parent.parent.find_next_sibling().find("a") + link = linkchaine.parent.parent.find_next_sibling().find_next_sibling().find("a") href = link['href'] response = urllib.request.urlopen(href) parse=BeautifulSoup(response.read(),"html.parser")