mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
adapter_archiveofourownorg: Add use_archiveofourown_gay, allow archiveofourown.gay input for story URLs.
This commit is contained in:
parent
31115f9245
commit
7bc03ac798
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ class ArchiveOfOurOwnOrgAdapter(BaseOTWAdapter):
|
|||
return ['archiveofourown.org',
|
||||
'archiveofourown.com',
|
||||
'archiveofourown.net',
|
||||
'archiveofourown.gay',
|
||||
'download.archiveofourown.org',
|
||||
'download.archiveofourown.com',
|
||||
'download.archiveofourown.net',
|
||||
|
|
@ -61,5 +62,7 @@ class ArchiveOfOurOwnOrgAdapter(BaseOTWAdapter):
|
|||
def mod_url_request(self, url):
|
||||
if self.getConfig("use_archive_transformativeworks_org",False):
|
||||
return url.replace("archiveofourown.org","archive.transformativeworks.org")
|
||||
elif self.getConfig("use_archiveofourown_gay",False):
|
||||
return url.replace("archiveofourown.org","archiveofourown.gay")
|
||||
else:
|
||||
return url
|
||||
|
|
|
|||
Loading…
Reference in a new issue