mirror of
https://github.com/kemayo/leech
synced 2025-12-09 18:04:27 +01:00
Support FictionPress
This commit is contained in:
parent
7de0e8d2fd
commit
c272bdee29
2 changed files with 8 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ Supports
|
|||
---
|
||||
|
||||
* Fanfiction.net
|
||||
* FictionPress
|
||||
* ArchiveOfOurOwn
|
||||
* Yes, it has its own built-in EPUB export, but the formatting is horrible
|
||||
* Various XenForo-based sites: SpaceBattles and SufficientVelocity, most notably
|
||||
|
|
|
|||
|
|
@ -74,3 +74,10 @@ class FanFictionNet(Site):
|
|||
print("Trouble cleaning attributes", e)
|
||||
|
||||
return text.prettify()
|
||||
|
||||
@register
|
||||
class FictionPress(FanFictionNet):
|
||||
@staticmethod
|
||||
def matches(url):
|
||||
# e.g. https://www.fanfiction.net/s/4109686/3/Taking-Sights
|
||||
return re.match(r'^https?://www\.fictionpress\.com/s/\d+/?.*', url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue