X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Fmangafox.py;h=8ac34f8f24310dda67f02e398a731d9b49bb29cb;hb=49f0c16f7fe5c160fa64793dd03ada5386bf7c4f;hp=0e8c2e9ecee9baef634fee680c2371d768244646;hpb=20a9e62afa4842b32b664d764c7a95ee1ca7cf89;p=automanga.git diff --git a/manga/mangafox.py b/manga/mangafox.py index 0e8c2e9..8ac34f8 100644 --- a/manga/mangafox.py +++ b/manga/mangafox.py @@ -2,7 +2,7 @@ import urllib.request, re import bs4, json from . import lib, htcache soup = bs4.BeautifulSoup -soupify = lambda cont: soup(cont) +soupify = lambda cont: soup(cont, "html.parser") class page(lib.page): def __init__(self, chapter, stack, n, url): @@ -121,7 +121,7 @@ class manga(lib.manga): raise Exception("parse error: weird volume list for %r" % self) for o, ch in enumerate(reversed(cls.findAll("li"))): n = ch.div.h3 or ch.div.h4 - name = n.a.string + chid = name = n.a.string for span in ch("span"): try: if "title" in span["class"]: @@ -135,7 +135,7 @@ class manga(lib.manga): pass else: raise Exception("parse error: unexpected chapter URL for %r: %s" % (self, url)) - vol.ch.append(chapter(vol, vol.stack + [(vol, o)], name, name, url)) + vol.ch.append(chapter(vol, vol.stack + [(vol, o)], chid, name, url)) cvol.append(vol) self.cvol = cvol return self.cvol