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

Make arbitrary site chapter-title selectors more resilient

This commit is contained in:
David Lynch 2020-04-29 17:54:44 -05:00
parent 6631095726
commit 6fbdc8843d

View file

@ -111,7 +111,7 @@ class Arbitrary(Site):
if definition.content_title_selector:
title_element = content.select(definition.content_title_selector)
if title_element:
title = title_element[0].string
title = title_element[0].get_text().strip()
if definition.content_text_selector:
# TODO: multiple text elements?