mirror of
https://github.com/kemayo/leech
synced 2026-05-09 05:20:46 +02:00
Merge pull request #7 from Zomega/patch-1
Fix up the FictionPress site handler.
This commit is contained in:
commit
971398701f
1 changed files with 4 additions and 2 deletions
|
|
@ -82,5 +82,7 @@ class FanFictionNet(Site):
|
||||||
class FictionPress(FanFictionNet):
|
class FictionPress(FanFictionNet):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def matches(url):
|
def matches(url):
|
||||||
# e.g. https://www.fanfiction.net/s/4109686/3/Taking-Sights
|
# e.g. https://www.fictionpress.com/s/2961893/1/Mother-of-Learning
|
||||||
return re.match(r'^https?://www\.fictionpress\.com/s/\d+/?.*', url)
|
match = re.match(r'^(https?://www\.fictionpress\.com/s/\d+)/?.*', url)
|
||||||
|
if match:
|
||||||
|
return match.group(1) + '/'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue