From f96e4af3d2b75b1491fb55fab6d8cb71e8daaa64 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 14 Jan 2021 10:24:50 -0600 Subject: [PATCH] adapter_webnovelcom: Fixes for site changes. Closes #629 --- fanficfare/adapters/adapter_webnovelcom.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fanficfare/adapters/adapter_webnovelcom.py b/fanficfare/adapters/adapter_webnovelcom.py index adc75e7a..41e627ae 100644 --- a/fanficfare/adapters/adapter_webnovelcom.py +++ b/fanficfare/adapters/adapter_webnovelcom.py @@ -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)