Fix ficwad.com changing author URLs.

This commit is contained in:
Jim Miller
2015-05-01 09:57:35 -05:00
parent 3d07257f7c
commit 5dd2959eb0
+1 -1
View File
@@ -135,7 +135,7 @@ class FicwadComSiteAdapter(BaseSiteAdapter):
self.story.setMetadata('title', stripHTML(titleh4.a))
# Find authorid and URL from... author url.
a = soup.find('span',{'class':'author'}).find('a', href=re.compile(r"^/author/\d+"))
a = soup.find('span',{'class':'author'}).find('a', href=re.compile(r"^/a/"))
self.story.setMetadata('authorId',a['href'].split('/')[2])
self.story.setMetadata('authorUrl','http://'+self.host+a['href'])
self.story.setMetadata('author',a.string)