Add Pairing to hpfanficarchivecom.

This commit is contained in:
Jim Miller
2014-03-29 11:24:37 -05:00
parent 3b77a6b1c1
commit bc0ef37fe6
@@ -160,6 +160,11 @@ class HPFanficArchiveComAdapter(BaseSiteAdapter):
for genre in genres:
self.story.addToList('genre',genre.string)
if 'Pairing' in label:
ships = labelspan.parent.findAll('a',href=re.compile(r'browse.php\?type=class&type_id=4'))
for ship in ships:
self.story.addToList('ships',ship.string)
if 'Warnings' in label:
warnings = labelspan.parent.findAll('a',href=re.compile(r'browse.php\?type=class&type_id=2')) # XXX
for warning in warnings: