From 60439cc6581a208905edee0ca75004254978256a Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 21 Jun 2016 11:23:20 -0500 Subject: [PATCH] Fix for older harrypotterfanfictioncom stories lacking reviewjs.js. --- .../adapters/adapter_harrypotterfanfictioncom.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fanficfare/adapters/adapter_harrypotterfanfictioncom.py b/fanficfare/adapters/adapter_harrypotterfanfictioncom.py index 23bacb5..13b2305 100644 --- a/fanficfare/adapters/adapter_harrypotterfanfictioncom.py +++ b/fanficfare/adapters/adapter_harrypotterfanfictioncom.py @@ -188,9 +188,13 @@ class HarryPotterFanFictionComSiteAdapter(BaseSiteAdapter): data = self._fetchUrl(url) - # remove everything after here--the site's chapters break the - # BS4 parser. - data = data[:data.index('