mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-10-04 12:10:26 +08:00
Fix for scarvesandcoffee.net taking author from featured stories.
This commit is contained in:
1 parent
7f4749a022
commit
7a47d1fad2
1 file changed
+1
-1
@@ -141,7 +141,7 @@ class ScarvesAndCoffeeNetAdapter(BaseSiteAdapter):
|
||||
self.story.setMetadata('title',a.string)
|
||||
|
||||
# Find authorid and URL from... author url.
|
||||
a = soup.find('a', href=re.compile(r"viewuser.php\?uid=\d+"))
|
||||
a = soup.find('div',{"id":"pagetitle"}).find('a', href=re.compile(r"viewuser.php\?uid=\d+"))
|
||||
self.story.setMetadata('authorId',a['href'].split('=')[1])
|
||||
self.story.setMetadata('authorUrl','http://'+self.host+'/'+a['href'])
|
||||
self.story.setMetadata('author',a.string)
|
||||
|
||||
Reference in new issue
Block a user