Fix Fimfiction's author name detection

This commit is contained in:
facedeer 2014-12-09 02:10:51 -07:00
parent 61f8b5365a
commit bbb0ad9cc5

View file

@ -127,7 +127,7 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter):
self.story.setMetadata('title',stripHTML(title))
# Author
author = storyContentBox.find('span', {'class':'author'})
author = storyContentBox.find('div', {'class':'author'}).find('a')
self.story.setMetadata("author", stripHTML(author))
#No longer seems to be a way to access Fimfiction's internal author ID
self.story.setMetadata("authorId", self.story.getMetadata("author"))