From e6b66636b92599d7901a6d6231882223fd3393b0 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 9 Jul 2022 11:20:01 -0500 Subject: [PATCH] adapter_fictionhuntcom: Fix for changes to chapter list. --- fanficfare/adapters/adapter_fictionhuntcom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fanficfare/adapters/adapter_fictionhuntcom.py b/fanficfare/adapters/adapter_fictionhuntcom.py index fb133c8e..5318df42 100644 --- a/fanficfare/adapters/adapter_fictionhuntcom.py +++ b/fanficfare/adapters/adapter_fictionhuntcom.py @@ -321,8 +321,8 @@ class FictionHuntComSiteAdapter(BaseSiteAdapter): # else: # self.story.addToList('category', 'Original') - for chapa in soup.select('ul.Story__contents-list a'): - self.add_chapter(stripHTML(chapa.find('span')),chapa['href']) + for chapli in soup.select('ul.StoryContents__chapters li'): + self.add_chapter(stripHTML(chapli.select_one('span.chapter-title')),chapli.select_one('a')['href']) if self.num_chapters() == 0: raise exceptions.FailedToDownload("Story at %s has no chapters." % self.url)