adapter_storiesonlinenet: Remove some code that broke parsing when 'author' was in the title.

This commit is contained in:
Jim Miller 2025-02-14 20:43:51 -06:00
parent fc9d184f20
commit 75f89beab1

View file

@ -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])