mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-09 11:14:08 +08:00
Fix for base_efiction_adapter stories with spans w/o class attr.
This commit is contained in:
@@ -382,7 +382,7 @@ class BaseEfictionAdapter(BaseSiteAdapter):
|
||||
while nextEl is not None and not (\
|
||||
type(nextEl) is bs.Tag \
|
||||
and nextEl.name == "span" \
|
||||
and 'label' in nextEl['class'] \
|
||||
and 'label' in nextEl.get('class',[]) \ # for spans without class
|
||||
):
|
||||
## must string copy nextEl or nextEl will change trees
|
||||
if (type(nextEl) is bs.Tag):
|
||||
|
||||
Reference in New Issue
Block a user