Fix for author including <b>Updated</b> in desc in adapter_ashwindersycophanthexcom.

This commit is contained in:
Jim Miller 2017-04-20 12:12:44 -05:00
parent 97f7eb1564
commit a452163152

View file

@ -194,8 +194,10 @@ class AshwinderSycophantHexComAdapter(BaseSiteAdapter):
val = val.nextSibling
self.setDescription(url,svalue)
# <span class="label">Rated:</span> NC-17<br /> etc
labels = info.findAll('b')
## <td><span class="sb"><b>Published:</b> 04/08/2007</td>
## one story had <b>Updated...</b> in the description. Restrict to sub-table
labels = info.find('table').findAll('b')
for labelspan in labels:
value = labelspan.nextSibling
label = stripHTML(labelspan)