From 6cfa71c3f04c8d14f00a63acb372babd59a1e87a Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 24 Jul 2018 14:15:16 -0500 Subject: [PATCH] Fix base_xenforoforum_adapter bug when no threadmarks. --- fanficfare/adapters/base_xenforoforum_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/base_xenforoforum_adapter.py b/fanficfare/adapters/base_xenforoforum_adapter.py index cf105a27..7e7b05b8 100644 --- a/fanficfare/adapters/base_xenforoforum_adapter.py +++ b/fanficfare/adapters/base_xenforoforum_adapter.py @@ -412,7 +412,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter): # otherwise, use first post links--include first post since # that's often also the first chapter. - if self.num_chapters < 1: + if self.num_chapters() < 1: self.add_chapter(first_post_title,useurl) for (url,name) in [ (x['href'],stripHTML(x)) for x in bq.find_all('a') ]: (is_chapter_url,url) = self._is_normalize_chapterurl(url)