From d8328985f75bcedec7f4a59f6cca02b718bb7d5e Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 20 Jul 2017 11:13:46 -0500 Subject: [PATCH] Fix to adapter_asexstoriescom for site change. --- fanficfare/adapters/adapter_asexstoriescom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fanficfare/adapters/adapter_asexstoriescom.py b/fanficfare/adapters/adapter_asexstoriescom.py index f1ffbe9d..ab978bc8 100644 --- a/fanficfare/adapters/adapter_asexstoriescom.py +++ b/fanficfare/adapters/adapter_asexstoriescom.py @@ -132,7 +132,8 @@ class ASexStoriesComAdapter(BaseSiteAdapter): for page in chapterTable: chapterTitle = page.string chapterUrl = urlparse.urljoin(self.url, page['href']) - self.chapterUrls.append((chapterTitle, chapterUrl)) + if chapterUrl.startswith(self.url): # there are other URLs in the pages block now. + self.chapterUrls.append((chapterTitle, chapterUrl)) self.story.setMetadata('numChapters', len(self.chapterUrls))