From 5ec09f3936bef7e0bbf5a6b1cb8c9eb1e0e7fb79 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sun, 17 Jan 2016 10:06:28 -0600 Subject: [PATCH] Fix for TtH Story-42 matching Story-421 while searching auth pages. --- fanficfare/adapters/adapter_tthfanficorg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/adapter_tthfanficorg.py b/fanficfare/adapters/adapter_tthfanficorg.py index cefad8b5..e003c93a 100644 --- a/fanficfare/adapters/adapter_tthfanficorg.py +++ b/fanficfare/adapters/adapter_tthfanficorg.py @@ -172,7 +172,7 @@ class TwistingTheHellmouthSiteAdapter(BaseSiteAdapter): descurl=authorurl authorsoup = self.make_soup(authordata) # author can have several pages, scan until we find it. - while( not authorsoup.find('a', href=re.compile(r"^/Story-"+self.story.getMetadata('storyId'))) ): + while( not authorsoup.find('a', href=re.compile(r"^/Story-"+self.story.getMetadata('storyId')+'/')) ): nextarrow = authorsoup.find('a', {'class':'arrowf'}) if not nextarrow: ## if rating is set lower than story, it won't be