From f220be69deedd3d23d360bc1c56986e4bfb52025 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 25 Nov 2015 11:04:28 -0600 Subject: [PATCH] Fix for hpfandom.net change so one-shot stories will work correctly. --- fanficfare/adapters/adapter_hpfandomnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/adapter_hpfandomnet.py b/fanficfare/adapters/adapter_hpfandomnet.py index 4317a09..1fb408b 100644 --- a/fanficfare/adapters/adapter_hpfandomnet.py +++ b/fanficfare/adapters/adapter_hpfandomnet.py @@ -100,7 +100,7 @@ class HPFandomNetAdapterAdapter(BaseSiteAdapter): # XXX # set first URL a = soup.find('a', href=re.compile(r"viewstory.php\?sid=\d+")) ## href = "javascript:if (confirm('Slash/het fiction which incorporates sexual situations to a somewhat graphic degree as well as graphic violent situations. ')) location = 'viewstory.php?sid=49111&i=1'" - m = re.match(r'.*?(viewstory.php\?sid=\d+)&i=\d+.*?',a['href']) + m = re.match(r'.*?(viewstory.php\?sid=\d+)',a['href']) self._setURL('http://'+self.host+'/eff/'+m.group(1)) if self.parsedUrl.query.split('=',)[1] != self.story.getMetadata('storyId'): self.story.setMetadata('storyId',self.parsedUrl.query.split('=',)[1])