mirror of
https://github.com/kemayo/leech
synced 2025-12-06 16:33:16 +01:00
Fix no-threadmarks autodetect
This commit is contained in:
parent
df8e67d3e1
commit
27b677a444
1 changed files with 4 additions and 1 deletions
|
|
@ -71,7 +71,10 @@ class XenForo(Site):
|
|||
|
||||
threadmarks_link = soup.find(class_="threadmarksTrigger", href=True)
|
||||
if not threadmarks_link:
|
||||
try:
|
||||
threadmarks_link = soup.select('.threadmarkMenus a.OverlayTrigger')[0]
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
if not threadmarks_link:
|
||||
raise SiteException("No threadmarks")
|
||||
|
|
|
|||
Loading…
Reference in a new issue