mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
adapter_fictionhuntcom: Fix for changes to chapter list.
This commit is contained in:
parent
13c6a1fd77
commit
e6b66636b9
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue