Dolda2000 GitWeb
/
automanga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f4dc3
)
Fixed batoto search bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 11 Dec 2013 01:08:59 +0000
(
02:08
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 11 Dec 2013 01:08:59 +0000
(
02:08
+0100)
manga/batoto.py
patch
|
blob
|
blame
|
history
diff --git
a/manga/batoto.py
b/manga/batoto.py
index
6869973
..
cab29b5
100644
(file)
--- 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":