Fix to adapter_asexstoriescom for site change.

This commit is contained in:
Jim Miller 2017-07-20 11:13:46 -05:00
parent 24c76ea808
commit d8328985f7

View file

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