1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-06 08:22:56 +01:00

Fix no-threadmarks autodetect

This commit is contained in:
David Lynch 2017-10-29 19:50:19 -05:00
parent df8e67d3e1
commit 27b677a444

View file

@ -71,7 +71,10 @@ class XenForo(Site):
threadmarks_link = soup.find(class_="threadmarksTrigger", href=True)
if not threadmarks_link:
threadmarks_link = soup.select('.threadmarkMenus a.OverlayTrigger')[0]
try:
threadmarks_link = soup.select('.threadmarkMenus a.OverlayTrigger')[0]
except IndexError:
pass
if not threadmarks_link:
raise SiteException("No threadmarks")