From 40042cdb467f2a102ea5e425b60d7c0a05df5c0a Mon Sep 17 00:00:00 2001 From: David Lynch Date: Mon, 13 Mar 2017 00:08:53 -0500 Subject: [PATCH] Xenforo: exclude threadmarks from links, too --- sites/xenforo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sites/xenforo.py b/sites/xenforo.py index af30f0a..142f5c5 100644 --- a/sites/xenforo.py +++ b/sites/xenforo.py @@ -35,7 +35,10 @@ class XenForo(Site): author=soup.find('p', id='pageDescription').find('a', class_='username').get_text() ) - marks = [mark for mark in self._chapter_list(url) if '/members' not in mark.get('href')] + marks = [ + mark for mark in self._chapter_list(url) + if '/members' not in mark.get('href') and '/threadmarks' not in mark.get('href') + ] marks = marks[self.options.offset:self.options.limit] for idx, mark in enumerate(marks, 1):