Tweak fixes to ffn and fanfiktionde.

This commit is contained in:
Jim Miller
2012-07-12 09:48:25 -05:00
parent fcdd799d10
commit 312b6b2c3e
2 changed files with 3 additions and 3 deletions
@@ -88,7 +88,7 @@ class FanFictionNetSiteAdapter(BaseSiteAdapter):
else:
raise e
if "Unable to locate story with id of " in data:
if "Unable to locate story" in data:
raise exceptions.StoryDoesNotExist(url)
# some times "Chapter not found...", sometimes "Chapter text not found..."
@@ -161,9 +161,9 @@ class FanFiktionDeAdapter(BaseSiteAdapter):
self.story.addToList('genre',genre)
if 'fertiggestellt' in head.text:
self.story.setMetadata('status', 'Fertiggestellt')
self.story.setMetadata('status', 'Completed')
else:
self.story.setMetadata('status', 'In Arbeit')
self.story.setMetadata('status', 'In Progress')
#find metadata on the author's page
asoup = bs.BeautifulSoup(self._fetchUrl("http://"+self.getSiteDomain()+"?a=q&a1=v&t=nickdetailsstories&lbi=stories&ar=0&nick="+self.story.getMetadata('authorId')))