mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-28 09:54:14 +02:00
Add download.archiveofourown.org for AO3 due to old downloaded AO3 epubs.
This commit is contained in:
parent
a452163152
commit
4d3054ad8e
1 changed files with 5 additions and 1 deletions
|
|
@ -69,6 +69,10 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter):
|
|||
# The site domain. Does have www here, if it uses it.
|
||||
return 'archiveofourown.org'
|
||||
|
||||
@classmethod
|
||||
def getAcceptDomains(cls):
|
||||
return ['archiveofourown.org','download.archiveofourown.org']
|
||||
|
||||
@classmethod
|
||||
def getSiteExampleURLs(cls):
|
||||
return "http://"+cls.getSiteDomain()+"/works/123456 http://"+cls.getSiteDomain()+"/collections/Some_Archive/works/123456 http://"+cls.getSiteDomain()+"/works/123456/chapters/78901"
|
||||
|
|
@ -76,7 +80,7 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter):
|
|||
def getSiteURLPattern(self):
|
||||
# http://archiveofourown.org/collections/Smallville_Slash_Archive/works/159770
|
||||
# Discard leading zeros from story ID numbers--AO3 doesn't use them in it's own chapter URLs.
|
||||
return r"https?://"+re.escape(self.getSiteDomain())+r"(/collections/[^/]+)?/works/0*(?P<id>\d+)"
|
||||
return r"https?://(download\.)?"+re.escape(self.getSiteDomain())+r"(/collections/[^/]+)?/works/0*(?P<id>\d+)"
|
||||
|
||||
## Login
|
||||
def needToLoginCheck(self, data):
|
||||
|
|
|
|||
Loading…
Reference in a new issue