Fix base_xenforoforum_adapter bug when no threadmarks.

This commit is contained in:
Jim Miller 2018-07-24 14:15:16 -05:00
parent cc1359abf7
commit 6cfa71c3f0

View file

@ -412,7 +412,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
# otherwise, use first post links--include first post since # otherwise, use first post links--include first post since
# that's often also the first chapter. # that's often also the first chapter.
if self.num_chapters < 1: if self.num_chapters() < 1:
self.add_chapter(first_post_title,useurl) self.add_chapter(first_post_title,useurl)
for (url,name) in [ (x['href'],stripHTML(x)) for x in bq.find_all('a') ]: for (url,name) in [ (x['href'],stripHTML(x)) for x in bq.find_all('a') ]:
(is_chapter_url,url) = self._is_normalize_chapterurl(url) (is_chapter_url,url) = self._is_normalize_chapterurl(url)