mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-18 06:03:16 +01:00
adapter_adultfanfictionorg: Fixes for site changes, thanks cryosaur.
This commit is contained in:
parent
4d322a8fae
commit
7eb142e598
1 changed files with 2 additions and 2 deletions
|
|
@ -217,7 +217,7 @@ class AdultFanFictionOrgAdapter(BaseSiteAdapter):
|
|||
self.story.setMetadata('title',stripHTML(a).replace('\\','').replace(' ',' ').replace(' ',' ').replace(' ',' ').strip())
|
||||
|
||||
# Find the chapters:
|
||||
chapters = soup.find('div',{'class':'dropdown-content'})
|
||||
chapters = soup.find('ul',{'class':'dropdown-content'})
|
||||
for i, chapter in enumerate(chapters.findAll('a')):
|
||||
self.add_chapter(chapter,self.url+'&chapter='+unicode(i+1))
|
||||
|
||||
|
|
@ -373,7 +373,7 @@ class AdultFanFictionOrgAdapter(BaseSiteAdapter):
|
|||
logger.debug('Getting chapter text from: %s' % url)
|
||||
|
||||
soup = self.make_soup(self.get_request(url))
|
||||
chaptertag = soup.find('div',{'class' : 'pagination'}).parent.findNext('td')
|
||||
chaptertag = soup.find('ul',{'class':'pagination'}).parent.parent.parent.findNext('li')
|
||||
if None == chaptertag:
|
||||
raise exceptions.FailedToDownload("Error downloading Chapter: {0}! Missing required element!".format(url))
|
||||
# Change td to a div.
|
||||
|
|
|
|||
Loading…
Reference in a new issue