mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-22 16:54:06 +01:00
Better handling of 'Anonymous' stories on AO3.
This commit is contained in:
parent
2fcdbca766
commit
4a5e7c9fa1
1 changed files with 2 additions and 1 deletions
|
|
@ -164,7 +164,8 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter):
|
|||
alist = soup.findAll('a', href=re.compile(r"^/users/\w+/pseuds/\w+"))
|
||||
if len(alist) < 1: # ao3 allows for author 'Anonymous' with no author link.
|
||||
self.story.setMetadata('author','Anonymous')
|
||||
self.story.setMetadata('authorUrl',self.url)
|
||||
self.story.setMetadata('authorUrl','http://archiveofourown.org/')
|
||||
self.story.setMetadata('authorId','0')
|
||||
else:
|
||||
for a in alist:
|
||||
self.story.addToList('authorId',a['href'].split('/')[2])
|
||||
|
|
|
|||
Loading…
Reference in a new issue