mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 17:02:43 +01:00
adapter_mcstoriescom: Suppress site URLs that look like stories but aren't. #1160
This commit is contained in:
parent
8e55d1e6f4
commit
c9accda3f8
1 changed files with 3 additions and 1 deletions
|
|
@ -64,7 +64,9 @@ class MCStoriesComSiteAdapter(BaseSiteAdapter):
|
||||||
return "https://mcstories.com/StoryTitle/ https://mcstories.com/StoryTitle/index.html https://mcstories.com/StoryTitle/StoryTitle1.html"
|
return "https://mcstories.com/StoryTitle/ https://mcstories.com/StoryTitle/index.html https://mcstories.com/StoryTitle/StoryTitle1.html"
|
||||||
|
|
||||||
def getSiteURLPattern(self):
|
def getSiteURLPattern(self):
|
||||||
return r"https?://(www\.)?mcstories\.com/([a-zA-Z0-9_-]+)/"
|
## Note that this uses a regular expression *negative*
|
||||||
|
## lookahead--story URLs *can't* have /Titles/ /Authors/ etc.
|
||||||
|
return r"https?://(www\.)?mcstories\.com(?!/(Titles|Authors|Tags|ReadersPicks)/)/[a-zA-Z0-9_-]+/"
|
||||||
|
|
||||||
def extractChapterUrlsAndMetadata(self):
|
def extractChapterUrlsAndMetadata(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue