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:
parent
6631095726
commit
6fbdc8843d
1 changed files with 1 additions and 1 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Reference in a new issue