migrate yarn & add remove space #13
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user