Fix for adapter_spikeluvercom desc containing extra stuff.

This commit is contained in:
Jim Miller 2017-01-01 12:21:35 -06:00
parent d65e7bd133
commit 772b58034b

View file

@ -126,7 +126,7 @@ class SpikeluverComAdapter(BaseSiteAdapter):
# Encountered next label, break. Not as bad as other
# e-fiction sites, let's hope this is enough for proper
# parsing.
if sibling.name == 'span' and sibling.get('class', None) == 'label':
if sibling.name == 'span' and 'label' in sibling.get('class', []):
break
if keep_summary_html: