From dfe896f4cd70df70b4e4ab3f37b7ec009b458218 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 30 Aug 2017 14:26:16 -0500 Subject: [PATCH] base_xenforo: Don't include thread title in *chapter* url, perfomance impact is smaller and keeps from marking a bunch of stuff (new). --- fanficfare/adapters/base_xenforoforum_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/base_xenforoforum_adapter.py b/fanficfare/adapters/base_xenforoforum_adapter.py index 71335722..aed3766d 100644 --- a/fanficfare/adapters/base_xenforoforum_adapter.py +++ b/fanficfare/adapters/base_xenforoforum_adapter.py @@ -155,7 +155,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter): ## normalize named thread urls, too. # http://forums.sufficientvelocity.com/threads/harry-potter-and-the-not-fatal-at-all-cultural-exchange-program.330/ - url = re.sub(r'/threads/(.*\.[0-9]+)/',r'/threads/\1/',url) + url = re.sub(r'/threads/.*\.([0-9]+)/',r'/threads/\1/',url) is_chapter_url = True return (is_chapter_url,url)