From 75f89beab1e6bece0e3e248a927e9630b76d5045 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 14 Feb 2025 20:43:51 -0600 Subject: [PATCH] adapter_storiesonlinenet: Remove some code that broke parsing when 'author' was in the title. --- fanficfare/adapters/adapter_storiesonlinenet.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fanficfare/adapters/adapter_storiesonlinenet.py b/fanficfare/adapters/adapter_storiesonlinenet.py index 9ed3fbdb..abd32dcd 100644 --- a/fanficfare/adapters/adapter_storiesonlinenet.py +++ b/fanficfare/adapters/adapter_storiesonlinenet.py @@ -210,11 +210,7 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter): a = soup.find('h1') self.story.setMetadata('title',stripHTML(a)) - # Find authorid and URL from... author url. Sometimes in top, - # other times in footer. - authfrom = soup.find('div', {'id':'top-header'}) - if authfrom is None or 'author' not in str(authfrom): - authfrom = soup.find('footer') + authfrom = soup.find('footer') alist = authfrom.findAll('a', {'rel' : 'author'}) for a in alist: self.story.addToList('authorId',a['href'].split('/')[2])