From 0a07ebc8b235a72a104087021fa6acad2df77088 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 16 Apr 2015 13:24:52 -0500 Subject: [PATCH] Fix storiesonline.net site changes --- fanficfare/adapters/adapter_storiesonlinenet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fanficfare/adapters/adapter_storiesonlinenet.py b/fanficfare/adapters/adapter_storiesonlinenet.py index 9e50ece2..b3d23465 100644 --- a/fanficfare/adapters/adapter_storiesonlinenet.py +++ b/fanficfare/adapters/adapter_storiesonlinenet.py @@ -321,7 +321,7 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter): soup = bs.BeautifulSoup(self._fetchUrl(url), selfClosingTags=('br','hr')) # otherwise soup eats the br/hr tags. - div = soup.find('div', {'id' : 'story'}) + div = soup.find('article', {'id' : 'story'}) # some big chapters are split over several pages pager = div.find('span', {'class' : 'pager'}) @@ -343,7 +343,7 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter): soup = bs.BeautifulSoup(self._fetchUrl("http://"+self.getSiteDomain()+ur['href']), selfClosingTags=('br','hr')) # otherwise soup eats the br/hr tags. - div1 = soup.find('div', {'id' : 'story'}) + div1 = soup.find('article', {'id' : 'story'}) # Find the "Continues" marker on the current page and remove everything after that. continues = div.find('span', {'class' : 'conTag'})