From 772b58034b9ccac18e0338742f8d980335c01830 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sun, 1 Jan 2017 12:21:35 -0600 Subject: [PATCH] Fix for adapter_spikeluvercom desc containing extra stuff. --- fanficfare/adapters/adapter_spikeluvercom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/adapter_spikeluvercom.py b/fanficfare/adapters/adapter_spikeluvercom.py index d9d3133c..e516d24b 100644 --- a/fanficfare/adapters/adapter_spikeluvercom.py +++ b/fanficfare/adapters/adapter_spikeluvercom.py @@ -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: