From 7a42c84f515f38eef63a3c6f1eb32b2725124e4f Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 11 Dec 2015 10:27:45 -0600 Subject: [PATCH] Remove 'like' from XenForoForum chapter links in index post. --- fanficfare/adapters/base_xenforoforum_adapter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fanficfare/adapters/base_xenforoforum_adapter.py b/fanficfare/adapters/base_xenforoforum_adapter.py index 8c14f00..c13add8 100644 --- a/fanficfare/adapters/base_xenforoforum_adapter.py +++ b/fanficfare/adapters/base_xenforoforum_adapter.py @@ -219,6 +219,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter): url = url.replace('http://'+self.getSiteDomain(),self.getURLPrefix()) url = re.sub(r'(^[\'"]+|[\'"]+$)','',url) # strip leading or trailing '" from incorrect quoting. + url = re.sub(r'like$','',url) # strip 'like' if incorrect 'like' link instead of proper post URL. logger.debug("(ch:%s)used chapurl:%s"%(len(self.chapterUrls)+1,url)) self.chapterUrls.append((name,url))