From 277b1ef92dccdd21bc6e2a0c839a9e1979886d12 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sun, 2 Oct 2016 12:57:02 -0500 Subject: [PATCH] Fix for unusual (changed?) chapter URLs on storiesonline.net. --- fanficfare/adapters/adapter_storiesonlinenet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/adapter_storiesonlinenet.py b/fanficfare/adapters/adapter_storiesonlinenet.py index 12d74df..0ed4da1 100644 --- a/fanficfare/adapters/adapter_storiesonlinenet.py +++ b/fanficfare/adapters/adapter_storiesonlinenet.py @@ -171,7 +171,7 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter): self.story.addToList('author',stripHTML(a).replace("'s Page","")) # Find the chapters: - chapters = soup.findAll('a', href=re.compile(r'^/s/'+self.story.getMetadata('storyId')+":\d+$")) + chapters = soup.findAll('a', href=re.compile(r'^/s/'+self.story.getMetadata('storyId')+":\d+(/.*)?$")) if len(chapters) != 0: for chapter in chapters: # just in case there's tags, like in chapter titles.