From d3f4de1ff817db4c5d2d0aa105f5200881008ca4 Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 26 Jul 2019 20:06:41 +0200 Subject: [PATCH] adapt to new tele loisir site --- backend/chainetv/emission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")