X-Git-Url: http://dolda2000.com/gitweb/?p=automanga.git;a=blobdiff_plain;f=manga%2Fbatoto.py;h=cab29b5f56123da274c5314072fb1b82216222f2;hp=686997373ce51926e832c1dbf6ee9e848160f841;hb=c72e69b8c6044cf4393b496bcfe73700698f4fa6;hpb=d8f4dc3095b2cb8d55dd594ae433f15985197542 diff --git a/manga/batoto.py b/manga/batoto.py index 6869973..cab29b5 100644 --- a/manga/batoto.py +++ b/manga/batoto.py @@ -144,6 +144,9 @@ class library(lib.library): page = soup(resp.read()) finally: resp.close() + none = page.find("p", attrs={"class": "no_messages"}) + if none is not None and u"No results" in none.text: + return [] ret = [] for child in page.find("div", id="search_results").ol.childGenerator(): if isinstance(child, BeautifulSoup.Tag) and child.name == u"li":