1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-30 04:02:21 +01:00

Xenforo: exclude threadmarks from links, too

This commit is contained in:
David Lynch 2017-03-13 00:08:53 -05:00
parent 5b4b9a0dc3
commit 40042cdb46

View file

@ -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):