mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
adapter_webnovelcom: Fixes for site changes. Closes #629
This commit is contained in:
parent
3ea533f5e6
commit
f96e4af3d2
1 changed files with 3 additions and 2 deletions
|
|
@ -117,6 +117,7 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
|
|||
|
||||
try:
|
||||
data = self._fetchUrl(url)
|
||||
# logger.debug(data)
|
||||
except HTTPError as e:
|
||||
if e.code == 404:
|
||||
raise exceptions.StoryDoesNotExist('Error 404: {0}'.format(self.url))
|
||||
|
|
@ -135,7 +136,7 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
|
|||
# Now go hunting for all the meta data and the chapter list.
|
||||
|
||||
# This is the block that holds the metadata
|
||||
bookdetails = soup.find('div', {'class': 'g_col_8'})
|
||||
bookdetails = soup.find('div', {'class': '_8'})
|
||||
|
||||
# Title
|
||||
title = bookdetails.find('h2')
|
||||
|
|
@ -203,7 +204,7 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
|
|||
|
||||
|
||||
if get_cover:
|
||||
cover_meta = soup.find('div', {'class': 'g_col_4'}).find('img')
|
||||
cover_meta = soup.find('div', {'class': '_4'}).find('img')
|
||||
cover_url = 'https:' + cover_meta['src']
|
||||
self.setCoverImage(url, cover_url)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue