migrate yarn & add remove space #13

Merged
vincent merged 2 commits from dev into master 2019-05-14 19:30:36 +00:00
Showing only changes of commit 45a6369b34 - Show all commits

View File

@ -33,6 +33,9 @@ class Emmission(object):
pass pass
strsearch=strsearch.replace('É','E') strsearch=strsearch.replace('É','E')
linkchaine=self.html.find(text=re.compile(re.escape(strsearch))) linkchaine=self.html.find(text=re.compile(re.escape(strsearch)))
if linkchaine == None:
strsearch=strsearch.replace(" ","")
linkchaine=self.html.find(text=re.compile(re.escape(strsearch)))
if linkchaine == None: if linkchaine == None:
return "can't find channel" return "can't find channel"
link = linkchaine.parent.parent.find_next_sibling().find("a") link = linkchaine.parent.parent.find_next_sibling().find("a")