mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-03 22:53:24 +01:00
Add URL prefix for XF2 authorUrl if relative.
This commit is contained in:
parent
abf3476eea
commit
0d71e3afe8
1 changed files with 3 additions and 1 deletions
|
|
@ -147,7 +147,9 @@ class BaseXenForo2ForumAdapter(BaseXenForoForumAdapter):
|
|||
a = souptag.find('section',{'class':'message-user'}).find('a',{'class':'username'})
|
||||
# logger.debug(a)
|
||||
self.story.addToList('authorId',a['href'].split('/')[-2])
|
||||
authorUrl = a['href'] # self.getURLPrefix()+'/'+a['href']
|
||||
authorUrl = a['href']
|
||||
if not authorUrl.startswith('http'):
|
||||
authorUrl = self.getURLPrefix()+authorUrl
|
||||
self.story.addToList('authorUrl',authorUrl)
|
||||
self.story.addToList('author',a.text)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue