Fix for storiesonline universe parsing (from davidfor).

This commit is contained in:
Jim Miller 2015-05-21 12:21:17 -05:00
parent 4490edfa36
commit 86a134f883

View file

@ -259,7 +259,7 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter):
logger.debug("Retrieving Universe - have page")
if universe_soup:
logger.debug("Retrieving Universe - looking for name")
universe_name = universe_soup.find('h1', {'id' : 'ptitle'}).text.partition(' —')[0]
universe_name = universe_soup.find('h1', {'id' : 'ptitle'}).text.partition('')[0]
logger.debug("Universes name: '{0}'".format(universe_name))
self.story.setMetadata('universeUrl',universeUrl)